* Add button for preview.
This commit is contained in:
@@ -315,3 +315,9 @@ function isQueryFilter(filters)
|
||||
{
|
||||
return filters.length > 0 && filters[0].from == 'query';
|
||||
}
|
||||
|
||||
function locate(module, method, params)
|
||||
{
|
||||
var link = createLink(module, method, params);
|
||||
window.location.href = link;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ $lang->pivot->design = 'Design pivot';
|
||||
$lang->pivot->export = 'Export pivot';
|
||||
$lang->pivot->query = 'Query';
|
||||
$lang->pivot->browseAction = 'Design in Pivot Table';
|
||||
$lang->pivot->designAB = 'Design';
|
||||
|
||||
$lang->pivot->id = 'ID';
|
||||
$lang->pivot->name = 'Name';
|
||||
|
||||
@@ -20,6 +20,7 @@ $lang->pivot->design = 'Design pivot';
|
||||
$lang->pivot->export = 'Export pivot';
|
||||
$lang->pivot->query = 'Query';
|
||||
$lang->pivot->browseAction = 'Design in Pivot Table';
|
||||
$lang->pivot->designAB = 'Design';
|
||||
|
||||
$lang->pivot->id = 'ID';
|
||||
$lang->pivot->name = 'Name';
|
||||
|
||||
@@ -20,6 +20,7 @@ $lang->pivot->design = 'Design pivot';
|
||||
$lang->pivot->export = 'Export pivot';
|
||||
$lang->pivot->query = 'Query';
|
||||
$lang->pivot->browseAction = 'Design in Pivot Table';
|
||||
$lang->pivot->designAB = 'Design';
|
||||
|
||||
$lang->pivot->id = 'ID';
|
||||
$lang->pivot->name = 'Name';
|
||||
|
||||
@@ -10,6 +10,7 @@ $lang->pivot->design = 'Design pivot';
|
||||
$lang->pivot->export = 'Export pivot';
|
||||
$lang->pivot->query = 'Query';
|
||||
$lang->pivot->browseAction = 'Design in Pivot Table';
|
||||
$lang->pivot->designAB = 'Design';
|
||||
|
||||
$lang->pivot->id = 'ID';
|
||||
$lang->pivot->name = 'Name';
|
||||
|
||||
@@ -20,6 +20,7 @@ $lang->pivot->design = '设计透视表';
|
||||
$lang->pivot->export = '导出透视表';
|
||||
$lang->pivot->query = '查询';
|
||||
$lang->pivot->browseAction = '进入透视表设计';
|
||||
$lang->pivot->designAB = '设计';
|
||||
|
||||
$lang->pivot->id = 'ID';
|
||||
$lang->pivot->name = '名称';
|
||||
|
||||
@@ -2162,8 +2162,7 @@ class pivotModel extends model
|
||||
*/
|
||||
public function buildPivotTable($data, $configs, $fields = array(), $sql = '')
|
||||
{
|
||||
$clientLang = $this->app->getClientLang();
|
||||
$width = 128;
|
||||
$width = 128;
|
||||
|
||||
/* Init table. */
|
||||
$table = "<table class='reportData table table-condensed table-striped table-bordered table-fixed datatable' style='width: auto; min-width: 100%' data-fixed-left-width='400'>";
|
||||
|
||||
@@ -40,6 +40,14 @@
|
||||
<div>
|
||||
<?php echo html::a('#', "{$lang->pivot->showOrigin}", '', "id='origin-query' class='query-after query-color btn-query-origin' title='{$lang->pivot->showOrigin}'");?>
|
||||
<?php echo html::a('#', "{$lang->pivot->showPivot}", '', "id='pivot-query' class='query-after query-color btn-query hidden' title='{$lang->pivot->showPivot}'");?>
|
||||
|
||||
<?php
|
||||
$clickable = $this->pivot->isClickable($pivot, 'design');
|
||||
$params = helper::safe64Encode("dimensionID=$pivot->dimension&groupID=$pivot->group&pivotID=$pivot->id");
|
||||
if(common::hasPriv('pivot', 'design') and $clickable) echo html::a($this->createLink('pivot', 'design', "id=$pivot->id&from=preview¶m=$params"), "<i class='icon icon-design'></i> {$lang->pivot->designAB}", '', "class='query-view' title='{$lang->pivot->designAB}'");
|
||||
if(common::hasPriv('pivot', 'edit') and $clickable) echo html::a($this->createLink('pivot', 'edit', "id=$pivot->id&from=preview¶ms=$params", '', true), "<i class='icon icon-edit'></i> {$lang->edit}", '', "class='iframe' title='{$lang->edit}' data-width='600'");
|
||||
if(common::hasPriv('pivot', 'delete') and $clickable) echo html::a($this->createLink('pivot', 'delete', "id=$pivot->id&confirm=no&from=preview"), "<i class='icon icon-trash'></i> {$lang->delete}", 'hiddenwin', "title='{$lang->delete}'");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class='panel-body' style='padding:0px;'>
|
||||
|
||||
Reference in New Issue
Block a user