* code for task #2522,2579.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* The ajaxSaveShortcut view file of search module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
|
||||
* @license ZPL (http://zpl.pub/page/zplv12.html)
|
||||
* @author Yidong Wang <yidong@cnezsoft.com>
|
||||
* @package search
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.lite.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php unset($queries['']);?>
|
||||
<?php if(empty($queries)):?>
|
||||
<p><?php echo $lang->search->noQuery?></p>
|
||||
<?php else:?>
|
||||
<form class='form-condensed' method='post' target='hiddenwin' style='padding: 40px 5% 150px;'>
|
||||
<div class='input-group'>
|
||||
<?php echo html::select('shortcuts[]', $queries, array_keys($shortcuts), "class='form-control chosen' multiple");?>
|
||||
<span class='input-group-btn'><?php echo html::submitButton()?></span>
|
||||
</div>
|
||||
<div class='alert alert-info' style='margin-top:5px'><?php echo $lang->search->noticeShortcut?></div>
|
||||
</form>
|
||||
<?php endif;?>
|
||||
<?php include '../../common/view/footer.lite.html.php';?>
|
||||
|
||||
@@ -398,7 +398,7 @@ foreach($fieldParams as $fieldName => $param)
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
<td class='<?php echo $style == 'simple' ? 'w-80px' : 'w-160px'?>'>
|
||||
<td class='<?php echo $style == 'simple' ? 'w-80px' : ($style == 'shortcut' ? 'w-180px' : 'w-160px');?>'>
|
||||
<?php
|
||||
echo html::hidden('module', $module);
|
||||
echo html::hidden('actionURL', $actionURL);
|
||||
@@ -410,6 +410,7 @@ foreach($fieldParams as $fieldName => $param)
|
||||
echo html::commonButton($lang->search->reset, 'onclick=resetForm(this)');
|
||||
echo html::commonButton($lang->save, 'onclick=saveQuery()');
|
||||
}
|
||||
if($style == 'shortcut') echo html::a($this->createLink('search', 'ajaxSaveShortcut', "module=$module"), $lang->search->shortcut, '', "class='btn' id='shortcutModal'");
|
||||
echo '</div>';
|
||||
?>
|
||||
</td>
|
||||
@@ -430,5 +431,6 @@ foreach($fieldParams as $fieldName => $param)
|
||||
</div>
|
||||
</form>
|
||||
<script language='Javascript'>
|
||||
$("#shortcutModal").modalTrigger({width:650, type:'iframe'});
|
||||
<?php if(isset($formSession['formType'])) echo "show{$formSession['formType']}('#{$module}-search')";?>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user