コード例 #1
0
ファイル: manage.php プロジェクト: plusjade/pluspanda-php
 public function index()
 {
     $content = new View('admin/testimonials/manage');
     $content->categories = t_build::tag_select_list($this->tags, $this->active_tag, array('all' => 'All'));
     #$content->ratings       = common_build::rating_select_list($this->active_rating);
     #$content->range         = common_build::range_select_list($this->active_range);
     $content->testimonials = $this->get_testimonials();
     if (request::is_ajax()) {
         die($content);
     }
     $this->shell->content = $content;
     $this->shell->child_nav = array(array('main', '/admin/testimonials/manage', 'All Testimonials', ''), array('collect', '/admin/testimonials/form', 'Add Testimonial Collection Form', ''));
     $this->shell->grandchild_nav = array(array('main', '/admin/testimonials/manage', 'Main Panel', ''), array('create', '/admin/testimonials/manage/edit?id=0', 'Create New Testimonial', ''), array('help', '#help-page', '(help)', 'fb-help'));
     die($this->shell);
 }
コード例 #2
0
ファイル: edit.php プロジェクト: plusjade/pluspanda-php
        <div class="t-body">
          <textarea name="body"><?php 
echo $testimonial->body;
?>
</textarea>
        </div>
        
        <div class="t-date"><?php 
echo common_build::timeago($testimonial->created);
?>
</div>
      
        <div class="t-tag">
          <?php 
echo t_build::tag_select_list($tags, $testimonial->tag->id, array('0' => '(Select Category)'));
?>
        </div>
        
        <div class="admin-extra">
          Lock Testimonial? <input type="checkbox" name="lock" <?php 
if (1 == $testimonial->lock) {
    echo 'CHECKED';
}
?>
 /> (yes)
          
          
          <div class="t-publish">
            Publish? <input type="checkbox" name="publish" value="yes" <?php 
echo empty($testimonial->publish) ? '' : 'CHECKED';