64 lines
2.8 KiB
PHP
64 lines
2.8 KiB
PHP
<?php
|
|
/**
|
|
* The browse view file of webapp module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
|
|
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
|
|
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
|
* @package webapp
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/header.html.php';?>
|
|
<?php include '../../common/view/treeview.html.php';?>
|
|
<table class='table-1'>
|
|
<tr>
|
|
<td>
|
|
<ul id='webapps'>
|
|
<?php foreach($webapps as $webapp):?>
|
|
<li>
|
|
<table class='fixed exttable' id='webapp<?php echo $webapp->id?>'>
|
|
<tr>
|
|
<td rowspan='4' width='73' height='73' class='webapp-icon'><img src='<?php echo empty($webapp->icon) ? '/theme/default/images/main/webapp-default.png' : $webapp->icon?>' width='72' height='72' /></td>
|
|
<td class='webapp-name'><?php echo $webapp->name?></td>
|
|
</tr>
|
|
<tr><td class='webapp-info'><span title='<?php echo $webapp->desc?>'><?php echo empty($webapp->desc) ? ' ' : $webapp->desc?></span></td></tr>
|
|
<tr><td><?php echo $lang->webapp->addTypeList[$webapp->addType];?></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', 'edit', "webappID=$webapp->id", $lang->edit, '', "class='button-c webapp'");
|
|
common::printLink('webapp', 'uninstall', "webapp=$webapp->id", $lang->webapp->uninstall, 'hiddenwin', "class='button-c'");
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
<?php endforeach;?>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type='text/javascript'>
|
|
var packup = '<?php echo $lang->webapp->packup?>';
|
|
var useapp = '<?php echo $lang->webapp->useapp?>';
|
|
var module = '<?php echo $module?>';
|
|
</script>
|
|
<?php include '../../common/view/footer.html.php';?>
|