* Hidden market field in marketreport-browse.

This commit is contained in:
hufangzhou
2023-08-30 15:17:52 +08:00
parent 07a479939e
commit c71ee53ce4
3 changed files with 7 additions and 1 deletions
@@ -32,6 +32,10 @@ $(function()
{
$dropmenu.append("<li><a href='<?php echo $this->createLink('datatable', 'ajaxCustom', 'id=' . $this->moduleName . '&method=' . $this->methodName . '&extra=unsetStory')?>' data-toggle='modal' data-type='ajax'><?php echo $lang->datatable->custom?></a></li>");
}
else if(currentModule == 'marketreport' && currentMethod == 'browse')
{
$dropmenu.append("<li><a href='<?php echo $this->createLink('datatable', 'ajaxCustom', 'id=' . $this->moduleName . '&method=' . $this->methodName . '&extra=unsetMarket')?>' data-toggle='modal' data-type='ajax'><?php echo $lang->datatable->custom?></a></li>");
}
else
{
$dropmenu.append("<li><a href='<?php echo $this->createLink('datatable', 'ajaxCustom', 'id=' . $this->moduleName . '&method=' . $this->methodName)?>' data-toggle='modal' data-type='ajax'><?php echo $lang->datatable->custom?></a></li>");
+1
View File
@@ -132,6 +132,7 @@ class datatable extends control
$this->view->cols = $cols;
$this->view->setting = $setting;
$this->view->extra = $extra;
$this->display();
}
+2 -1
View File
@@ -67,7 +67,8 @@
$width = $col['width'];
$autoWidth = $width == 'auto';
?>
<div class='clearfix col<?php echo ($required ? ' require' : '') . (' fixed-' . $fixed) ?>' data-key='<?php echo $key?>' data-fixed='<?php echo $fixed?>' data-width='<?php echo $width;?>'>
<?php $hidden = ($extra == 'unsetMarket' && $key == 'market') ? 'hidden' : '';?>
<div class='clearfix col<?php echo ($required ? ' require' : '') . (' fixed-' . $fixed) ?> <?php echo $hidden;?>' data-key='<?php echo $key?>' data-fixed='<?php echo $fixed?>' data-width='<?php echo $width;?>'>
<div class='actions pull-right' <?php if($autoWidth) echo "style='padding-right: 11px'";?>>
<?php if(isset($col['name'])) echo html::hidden('name', $col['name'])?>
<span><span class='text-muted'><?php echo $lang->datatable->width?></span> <input type='text' id='width' class='form-control' value='<?php echo $width;?>'><?php echo $autoWidth ? '&nbsp;' : 'px' ?></span>