public function pro_down($id)
 {
     if (mc_is_admin() || mc_is_bianji()) {
         $pro_id = mc_prev_page_id($id);
         if ($pro_id > 0) {
             $date = mc_get_page_field($pro_id, 'date');
             $page['date'] = $date - 1;
             M('page')->where("id='{$id}' AND type='pro'")->save($page);
         }
         $this->success('操作成功!');
     } else {
         $this->error('请不要放弃治疗');
     }
 }
Esempio n. 2
0
">
				</form>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<!-- /.modal -->
	<?php 
    }
    ?>
	<?php 
    if (mc_prev_page_id($val['id'])) {
        ?>
	<a class="prev_btn np_page_btn" href="<?php 
        echo mc_get_url(mc_prev_page_id($val['id']));
        ?>
">
		<i class="fa fa-chevron-circle-left"></i>
	</a>
	<?php 
    }
    ?>
	<?php 
    if (mc_next_page_id($val['id'])) {
        ?>
	<a class="next_btn np_page_btn" href="<?php 
        echo mc_get_url(mc_next_page_id($val['id']));
        ?>
">
		<i class="fa fa-chevron-circle-right"></i>