<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="save" content="history"> 
<title><?php echo V('-:tpl/title');?>管理后台</title>
<link href="<?php echo W_BASE_URL;?>css/admin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
@import "<?php echo W_BASE_URL;?>js/datepick/jquery.datepick.css";

</style>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/admin.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/datepick/jquery.datepick.js"></script>
<script type="text/javascript" src="<?php echo W_BASE_URL;?>js/datepick/jquery.datepick-zh-CN.js"></script>
<script>
$(function() {
	$('#start_date').datepick({
		'dateFormat':'yy-mm-dd'
	});
	$('input[type="text"]').blur(function() {
		checkForm(this);
	})
});
</script>
</head>
<body>
     <!--content-->
     <div class="wrap">
        <div class="position">当前位置：微博管理<em>></em>今日话题<em>></em><strong>话题<?php if ($info['id']) {?>编辑<?php } else { ?>添加<?php } ?></strong></div>
        <div class="cr_form">
                <form method="post" name="form_user" id="form_user" action="" onsubmit="return checkForm(this);">
                        <input type="hidden" id="id" name="id" value="<%$info.user_id%>" />
                        <table cellspacing="0">
                        	<tr>
                            	<td width="315" class="tbtitle" ><label for="topic"><em>*</em>话题内容：</label></td>
                                <td></td>
                            </tr>
                            <tr class="from_row">
                                <td>
                                <input type="text" name="topic" id="topic" class="insert_text" valid="required" value="<?php echo $info['topic'];?>" />
                                </td>
                                <td><div id="topic_msg"></div></td>
                            </tr>
                        	<tr>
                            	<td class="tbtitle" colspan="2"><label for="start_date"><em>*</em>生效时间：</label></td>
                            </tr>
                            <tr class="from_row">
                                <td>
                                    <input style="width:142px;" name="start_date" id="start_date" type="text" id="start_date" value="<?php if ($info) {echo date('Y-m-d', $info['start_time']);} else {echo date('Y-m-d');}?>" class="insert_text" valid="required|date" readonly />
                                    <input style="width:142px;" name="start_time" type="text" id="start_time" value="<?php if ($info) {echo date('H:i', $info['start_time']);} else {echo date('H:i');}?>" class="insert_text" valid="required|time" />
                                </td>
                                <td><div id="start_time_msg"></div></td>
                            </tr>
                        
                            <tr>
                                <td colspan="2" class="cr_formop">
                                    <input type="hidden" name="id" value="<?php echo $info['id'];?>" />
                                    <span class="button"><input name="" type="submit" value="提 交" /></span>
                                </td>
                            </tr>
                       </table>
                </form>
        </div>
     </div>  
</body>
</html>
