* change for my-story use ajax

* add title for project-index and product-index.
This commit is contained in:
wangyidong
2013-06-28 02:27:23 +00:00
parent 871bc69eff
commit 78a2f85b21
9 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::
include 'm.header.lite.html.php';
?>
<div data-role="header" data-position='fixed'>
<h1><?php echo $app->company->name?></h1>
<h1 style='margin-left:0px;text-align:left'><?php echo $app->company->name?></h1>
<?php echo html::a($this->createLink('user', 'logout'), $lang->logout, '', "data-icon='delete' class='ui-btn-right'")?>
<div data-role="navbar" id='mainMenu'>
<?php commonModel::printMainmenu($this->moduleName, $this->methodName)?>
+4 -9
View File
@@ -23,15 +23,10 @@
<?php foreach($stories as $story):?>
<div data-role="collapsible-set">
<div data-role="collapsible" data-collapsed="true">
<h1><?php echo $story->title;?></h1>
<div>
<p><strong><?php echo $lang->story->spec?><strong></p>
<?php echo $story->spec?>
</div>
<div>
<p><strong><?php echo $lang->story->verify?><strong></p>
<?php echo $story->verify?>
</div>
<?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='navbar'>
<ul>
<?php
+1 -1
View File
@@ -47,7 +47,7 @@
<div data-role='footer' data-position='fixed'>
<div data-role='navbar'>
<ul>
<li><?php echo html::a($this->createLink('todo', 'batchCreate'), $lang->todo->create)?></li>
<li><?php echo html::a($this->createLink('todo', 'batchCreate'), $lang->todo->create, '', "data-icon='plus'")?></li>
</ul>
</div>
</div>
+1
View File
@@ -51,6 +51,7 @@ class product extends control
$this->product->setMenu($this->products, $productID);
$this->app->loadLang('my');
$this->view->title = $this->lang->product->allProduct;
$this->view->productStats = $this->product->getStats();
$this->display();
}
+9 -5
View File
@@ -14,11 +14,15 @@
<ul data-role='listview'>
<?php foreach($productStats as $product):?>
<li>
<h3><?php echo $product->name?></h3>
<div style='text-align:right'>
<span><?php echo html::a($this->createLink('product', 'browse', "productID=$product->id"), $lang->story->browse, '', "data-role='button' data-mini='true' data-inline='true'")?></span>
<span><?php echo html::a($this->createLink('bug', 'browse', "productID=$product->id"), $lang->bug->browse, '', "data-role='button' data-mini='true' data-inline='true'")?></span>
</div>
<table class='table-1 fixed'>
<tr>
<td><h3><?php echo $product->name?></h3></td>
<td width='120'>
<?php echo html::a($this->createLink('product', 'browse', "productID=$product->id"), $lang->story->common, '', "data-role='button' data-mini='true' data-inline='true'")?>
<?php echo html::a($this->createLink('bug', 'browse', "productID=$product->id"), $lang->bug->common, '', "data-role='button' data-mini='true' data-inline='true'")?>
</td>
</tr>
</table>
</li>
<?php endforeach;?>
</ul>
+1
View File
@@ -46,6 +46,7 @@ class project extends control
$this->session->set('projectList', $this->app->getURI(true));
$this->app->loadLang('my');
$this->view->title = $this->lang->project->allProject;
$this->view->projectStats = $this->project->getProjectStats($status);
$this->display();
+1 -1
View File
@@ -13,7 +13,7 @@
<?php include '../../common/view/m.header.html.php';?>
</div>
<form method='post' target='hiddenwin'>
<h3><?php echo $story->title;?></h3>
<h3><?php echo $lang->story->close . $lang->colon . $story->title;?></h3>
<table class='table-1'>
<tr>
<td class='w-70px'><?php echo $lang->story->closedReason;?></td>
+1 -1
View File
@@ -12,7 +12,7 @@
?>
<?php include '../../common/view/m.header.html.php';?>
</div>
<h3><?php echo $story->title?></h3>
<h3><?php echo $lang->story->review . $lang->colon . $story->title?></h3>
<form method='post' target='hiddenwin'>
<table class='table-1'>
<tr>
+1 -2
View File
@@ -31,7 +31,7 @@
.a-right {text-align: right;}
.a-left {text-align: left;}
.table-1 {width:100%; margin-bottom:10px}
.table-1 {width:100%;}
.rowhead {font-weight:bold; text-align:right; width:80px; border:none}
.w-20px {width:20px}
@@ -50,4 +50,3 @@
.w-150px {width:150px}
.w-160px {width:160px}
.w-200px {width:200px}