46 lines
1.9 KiB
PHP
Executable File
46 lines
1.9 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* The story view file of dashboard module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
|
|
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
|
|
* @author Yidong Wang <yidong@cnezsoft.com>
|
|
* @package my
|
|
* @version $Id: story.html.php 4735 2013-05-03 08:30:02Z chencongzhi520@gmail.com $
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/m.header.html.php';?>
|
|
<div data-role='navbar' id='subMenu'>
|
|
<ul>
|
|
<?php foreach($config->mobile->storyBar as $menu):?>
|
|
<?php $active = $type == $menu ? 'ui-btn-active' : ''?>
|
|
<li><?php echo html::a($this->createLink('my', 'story', "type=$menu"), $lang->my->storyMenu->{$menu . 'Me'}, '', "class='$active' data-theme='d'")?></li>
|
|
<?php endforeach;?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<?php foreach($stories as $story):?>
|
|
<div data-role="collapsible-set">
|
|
<div data-role="collapsible" data-collapsed="true">
|
|
<?php if($this->session->storyID == $story->id) echo "<script>showDetail('story', $story->id);</script>";?>
|
|
<h1 onClick="showDetail('story', <?php echo $story->id;?>)"><?php echo $story->title;?></h1>
|
|
|
|
<div id='item<?php echo $story->id;?>'></div>
|
|
<div data-role='content' class='a-center'>
|
|
<?php
|
|
if(!$story->deleted)
|
|
{
|
|
common::printIcon('story', 'review', "storyID=$story->id", $story);
|
|
common::printIcon('story', 'close', "storyID=$story->id", $story);
|
|
common::printIcon('story', 'activate', "storyID=$story->id", $story);
|
|
common::printIcon('story', 'delete', "storyID=$story->id", '', '', '', 'hiddenwin');
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach;?>
|
|
<p><?php $pager->show('left', 'mobile')?></p>
|
|
<?php include '../../common/view/m.footer.html.php';?>
|