示例#1
0
    </div>
    <div class="control-group">
        <label class="control-label" for="edit_date_start">开始日期</label>
        <div class="controls">
            <input type="text" id="edit_date_start" name="edit_date_start" placeholder="YYYY-MM-DD" value="<?php 
        echo plugdate_get($view_res['post_name']);
        ?>
">
            <a href="#date_now_button" role="button" class="btn"><i class="icon-time"></i> 选择今天</a>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="edit_date_maturity">结束日期</label>
        <div class="controls">
            <input type="text" id="edit_date_maturity" name="edit_date_maturity" placeholder="YYYY-MM-DD" value="<?php 
        echo plugdate_get($view_res['post_url']);
        ?>
">
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 修改</button>
            <a href="<?php 
        echo $page_url . '&view=' . $view_res['id'];
        ?>
" role="button" class="btn"><i class="icon-remove"></i> 取消</a>
        </div>
</form>
<?php 
    }
示例#2
0
if (isset($_GET['view']) == true) {
    $view_res = $oapost->view($_GET['view']);
    if ($view_res) {
        $view_parent_res = $oapost->view($view_res['post_parent']);
        if ($view_parent_res) {
            ?>
<!-- 查看信息 -->
<h2>查看任务详情</h2>
<div id="view" class="form-actions">
    <p><?php 
            echo $view_parent_res['post_title'] . '&nbsp;&nbsp;' . get_tag_status($view_res['post_status']);
            ?>
</p>
    <p>&nbsp;</p>
    <p>任务期限:<?php 
            echo plugdate_get($view_parent_res['post_name']) . ' - ' . plugdate_get($view_parent_res['post_url']);
            ?>
</p>
    <p>&nbsp;</p>
    <p>任务描述:<?php 
            echo $view_parent_res['post_content'];
            ?>
</p>
    <p>&nbsp;</p>
    <p>个人描述:<?php 
            echo $view_res['post_content'];
            ?>
</p>
    <p>&nbsp;</p>
    <div class="control-group">
        <div class="controls">