* adjust pager style.
This commit is contained in:
@@ -12,8 +12,9 @@
|
||||
#webapps li {float:left; width:25%; list-style:none}
|
||||
#webapps li table {border:0px; width:95%; border:1px solid #ddd;}
|
||||
#webapps li table .webapp-name{font-size:14px; color:#039; padding-top:2px;}
|
||||
#webapps li table .webapp-icon{padding:5px;}
|
||||
#webapps li table .webapp-icon{padding:5px;vertical-align:middle;text-align:center}
|
||||
#webapps li table .webapp-info{color:#888; padding-top:2px; height:32px; white-space:pre-wrap;}
|
||||
#webapps li table .webapp-actions{padding-top:5px}
|
||||
|
||||
small{font-weight:normal}
|
||||
#webapps .button-c{min-width: 0;}
|
||||
#webapps .button-c{min-width: 0;}
|
||||
|
||||
@@ -26,25 +26,27 @@
|
||||
<tr><td valign='top'><div class='webapp-info' title='<?php echo $webapp->abstract?>'><?php echo empty($webapp->abstract) ? ' ' : $webapp->abstract?></div></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$url = $webapp->addType == 'custom' ? $webapp->url : $config->webapp->url . "/webapp-showapp-{$webapp->appid}.html";
|
||||
$method = '';
|
||||
$popup = '';
|
||||
$target = '_self';
|
||||
if($webapp->target == 'blank') $target = '_blank';
|
||||
if($webapp->target == 'iframe')$method = "toggleShowapp($webapp->id, \"$webapp->name\");";
|
||||
if($webapp->target == 'popup')
|
||||
{
|
||||
$width = 0;
|
||||
$height = 0;
|
||||
if($webapp->size) list($width, $height) = explode('x', $webapp->size);
|
||||
$method = "popup($width, $height);";
|
||||
$popup = 'popup';
|
||||
}
|
||||
echo html::a($url, $lang->webapp->useapp, $target, "id='useapp$webapp->id' class='button-c $popup' onclick='addView($webapp->id);$method'");
|
||||
common::printLink('webapp', 'view', "webappID=$webapp->id", $lang->webapp->view, '', "class='button-c webapp'");
|
||||
common::printLink('webapp', 'uninstall', "webapp=$webapp->id", $lang->webapp->uninstall, 'hiddenwin', "class='button-c'");
|
||||
?>
|
||||
<div class='webapp-actions'>
|
||||
<?php
|
||||
$url = $webapp->addType == 'custom' ? $webapp->url : $config->webapp->url . "/webapp-showapp-{$webapp->appid}.html";
|
||||
$method = '';
|
||||
$popup = '';
|
||||
$target = '_self';
|
||||
if($webapp->target == 'blank') $target = '_blank';
|
||||
if($webapp->target == 'iframe')$method = "toggleShowapp($webapp->id, \"$webapp->name\");";
|
||||
if($webapp->target == 'popup')
|
||||
{
|
||||
$width = 0;
|
||||
$height = 0;
|
||||
if($webapp->size) list($width, $height) = explode('x', $webapp->size);
|
||||
$method = "popup($width, $height);";
|
||||
$popup = 'popup';
|
||||
}
|
||||
echo html::a($url, $lang->webapp->useapp, $target, "id='useapp$webapp->id' class='button-c $popup' onclick='addView($webapp->id);$method'");
|
||||
common::printLink('webapp', 'view', "webappID=$webapp->id", $lang->webapp->view, '', "class='button-c webapp'");
|
||||
common::printLink('webapp', 'uninstall', "webapp=$webapp->id", $lang->webapp->uninstall, 'hiddenwin', "class='button-c'");
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -48,28 +48,30 @@
|
||||
<tr><td valign='top'><div class='webapp-info' title='<?php echo $webapp->abstract?>'><?php echo empty($webapp->abstract) ? ' ' : $webapp->abstract?></div></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$url = $webapp->url;
|
||||
$method = '';
|
||||
$popup = '';
|
||||
$target = '_self';
|
||||
if($webapp->target == 'popup')
|
||||
{
|
||||
$width = 0;
|
||||
$height = 0;
|
||||
if($webapp->size) list($width, $height) = explode('x', $webapp->size);
|
||||
$method = "popup($width, $height);";
|
||||
$popup = 'popup';
|
||||
}
|
||||
else
|
||||
{
|
||||
$method = "popup(1024, 600);";
|
||||
$popup = 'popup';
|
||||
}
|
||||
echo isset($installeds[$webapp->id]) ? html::commonButton($lang->webapp->installed, "disabled='disabled' style='color:gray'") : html::a(inLink('install', "webappID={$webapp->id}"), $lang->webapp->install, '_self', "class='button-c iframe'");
|
||||
common::printLink('webapp', 'view', "webappID=$webapp->id&type=api", $lang->webapp->view, '', "class='button-c apiapp'");
|
||||
echo html::a($url, $lang->webapp->preview, '', "id='useapp$webapp->id' class='button-c $popup' onclick='$method'");
|
||||
?>
|
||||
<div class='webapp-actions'>
|
||||
<?php
|
||||
$url = $webapp->url;
|
||||
$method = '';
|
||||
$popup = '';
|
||||
$target = '_self';
|
||||
if($webapp->target == 'popup')
|
||||
{
|
||||
$width = 0;
|
||||
$height = 0;
|
||||
if($webapp->size) list($width, $height) = explode('x', $webapp->size);
|
||||
$method = "popup($width, $height);";
|
||||
$popup = 'popup';
|
||||
}
|
||||
else
|
||||
{
|
||||
$method = "popup(1024, 600);";
|
||||
$popup = 'popup';
|
||||
}
|
||||
echo isset($installeds[$webapp->id]) ? html::commonButton($lang->webapp->installed, "disabled='disabled' style='color:gray'") : html::a(inLink('install', "webappID={$webapp->id}"), $lang->webapp->install, '_self', "class='button-c iframe'");
|
||||
common::printLink('webapp', 'view', "webappID=$webapp->id&type=api", $lang->webapp->view, '', "class='button-c apiapp'");
|
||||
echo html::a($url, $lang->webapp->preview, '', "id='useapp$webapp->id' class='button-c $popup' onclick='$method'");
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user