* change getWillClose to get2BeClosed and adjust width for create story.

This commit is contained in:
wangyidong
2016-03-14 14:44:28 +08:00
parent 0bd5173f01
commit fa11f088a6
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ class productModel extends model
if($browseType == 'draftstory') $stories = $this->story->getByStatus($productID, $branch, 'draft', $sort, $pager);
if($browseType == 'activestory') $stories = $this->story->getByStatus($productID, $branch, 'active', $sort, $pager);
if($browseType == 'changedstory') $stories = $this->story->getByStatus($productID, $branch, 'changed', $sort, $pager);
if($browseType == 'willclose') $stories = $this->story->getWillClose($productID, $branch, $sort, $pager);
if($browseType == 'willclose') $stories = $this->story->get2BeClosed($productID, $branch, $sort, $pager);
if($browseType == 'closedstory') $stories = $this->story->getByStatus($productID, $branch, 'closed', $sort, $pager);
if($stories) return $stories;
+2 -2
View File
@@ -1287,7 +1287,7 @@ class storyModel extends model
}
/**
* Get will close stories.
* Get to be closed stories.
*
* @param int $productID
* @param string $orderBy
@@ -1295,7 +1295,7 @@ class storyModel extends model
* @access public
* @return array
*/
public function getWillClose($productID, $branch, $orderBy, $pager)
public function get2BeClosed($productID, $branch, $orderBy, $pager)
{
$stories = $this->dao->select('*')->from(TABLE_STORY)
->where('product')->in($productID)
+1 -1
View File
@@ -87,7 +87,7 @@
<div class='col-table'>
<?php echo html::input('title', $storyTitle, "class='form-control'");?>
</div>
<div class='col-table w-250px'>
<div class='col-table w-200px'>
<div class="input-group">
<span class='input-group-addon fix-border br-0'><?php echo $lang->story->pri;?></span>
<?php $isAllNumberPri = is_numeric(join('', $lang->story->priList)); ?>