Exemple #1
0
    ?>
" size="3" maxlength="3" /></div></td>
			<td>
				<span style="color:<?php 
    echo $archive['content_archives_color'] ? $archive['content_archives_color'] : '#333';
    ?>
;">
					<a href="http://www.wan123.com<?php 
    echo Common::sign_archives_url($archive['content_archives_id']);
    ?>
" target="_blank"><?php 
    echo $archive['content_archives_subject'];
    ?>
</a>
					<?php 
    echo $archive['content_archives_flag'] ? ContentArchives::get_archives_flag($archive['content_archives_flag']) : '';
    ?>
				</span>
			</td>
			<td><div style="text-align:center"><?php 
    echo date('Y-m-d', $archive['content_archives_lasttime']);
    ?>
</div></td>
			<td>
				<div style="text-align:center">
					<?php 
    /*$classes = '';
    		dump($archive);exit;
    		foreach ($archive['content_archives_classes'] as $_k=>$_v) {
    			$classes = $classes ? '/' . $_v['class_name'] : $_v['class_name'];
    		}*/
Exemple #2
0
					<dt>图片短标题:</dt>
					<dd><input type="text" name="Archive[content_archives_short_subject]" value="<?php 
echo $archive['content_archives_short_subject'];
?>
" class="txt" style="width:200px;" /></dd>
				</dl>
			</td>
		</tr>
		
		<tr>
			<td colspan="5">
				<dl>
					<dt>自定义属性:</dt>
					<dd>
					<?php 
foreach (ContentArchives::get_archives_flag() as $_k => $_v) {
    $checked = in_array($_k, $archive['content_archives_flag']) ? ' checked="checked"' : '';
    echo "<input type=\"checkbox\" name=\"Archive[content_archives_flag][]\" id=\"content_archives_flag_{$_k}\" value=\"{$_k}\"{$checked} /><label for=\"content_archives_flag_{$_k}\">{$_v}</label>";
}
?>
					</dd>
				</dl>
				<script type="text/javascript">
				<!--
					$('#content_archives_flag_<?php 
echo ContentArchives::STAT_ARCHIVES_FLAG_J;
?>
').click(function(){
						if($(this).attr('checked') == 'checked') {
							$('#jump_url_id').show();
						} else {