* add the feature of common view extension.

This commit is contained in:
wangchunsheng
2010-07-04 02:20:01 +00:00
parent e720ffcbef
commit 76fb09f9fc
14 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<script src='<?php echo $jsRoot;?>jquery/reverseorder/raw.js' type='text/javascript'></script>
<?php if(!isset($actionTheme)) $actionTheme = 'fieldset';?>
<?php if($actionTheme == 'fieldset'):?>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<link rel='stylesheet' href='<?php echo $clientTheme;?>autocomplete.css' />
<script src='<?php echo $jsRoot;?>jquery/autocomplete/bgiframe.min.js' type='text/javascript'></script>
<script src='<?php echo $jsRoot;?>jquery/autocomplete/autocomplete.min.js' type='text/javascript'></script>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<link rel='stylesheet' href='<?php echo $clientTheme;?>autosuggest.css' />
<script src='<?php echo $jsRoot;?>jquery/autosuggest/min.js' type='text/javascript'></script>
<script language='javascript'>

View File

@@ -1,2 +1,3 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<link rel="stylesheet" href="<?php echo $clientTheme;?>colorbox.css" />
<script src="<?php echo $jsRoot;?>jquery/colorbox/min.js" type="text/javascript"></script>

View File

@@ -1,2 +1,3 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<script src='<?php echo $jsRoot;?>jquery/colorize/full.js' type='text/javascript'></script>
<script language='javascript'>$(function(){$('.colored').colorize();});</script>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<link rel='stylesheet' href='<?php echo $clientTheme;?>datepicker.css' type='text/css' />
<script src='<?php echo $jsRoot;?>jquery/datepicker/min.js' type='text/javascript'></script>
<script src='<?php echo $jsRoot;?>jquery/datepicker/date.js' type='text/javascript'></script>

View File

@@ -1,4 +1,5 @@
<p style='margin-bottom:30px'></p>
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<p style='margin-bottom:50px'></p>
<div class='yui-d0' id='hiddenbar'>
<iframe frameborder='0' name='hiddenwin' id='hiddenwin' class='<?php $config->debug ? print("debugwin") : print('hiddenwin')?>'></iframe>
</div>

View File

@@ -1,4 +1,5 @@
<?php
if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
include 'header.lite.html.php';
include 'colorbox.html.php';
?>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<?php
$webRoot = $this->app->getWebRoot();
$jsRoot = $webRoot . "js/";

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<?php if(isset($users[$action->actor])) $action->actor = $users[$action->actor];?>
<span><?php $this->action->printAction($action);?>
<?php if(!empty($action->comment) or !empty($action->history)):?>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<link rel="stylesheet" href="<?php echo $clientTheme;?>alert.css" />
<script src="<?php echo $jsRoot;?>jquery/alert/raw.js" type="text/javascript"></script>
<script src="<?php echo $jsRoot;?>jquery/table2csv/raw.js" type="text/javascript"></script>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<script src='<?php echo $jsRoot;?>jquery/tablesorter/min.js' type='text/javascript'></script>
<script src='<?php echo $jsRoot;?>jquery/tablesorter/metadata.js' type='text/javascript'></script>
<script language='javascript'>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<link rel='stylesheet' href='<?php echo $clientTheme;?>treetable.css' type='text/css' />
<script src='<?php echo $jsRoot;?>jquery/treetable/min.js' type='text/javascript'></script>
<script language='javascript'>$(function() { $("#treetable").treeTable({clickableNodeNames:true,initialState:"expanded"})})</script>

View File

@@ -1,3 +1,4 @@
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
<link rel='stylesheet' href='<?php echo $clientTheme;?>treeview.css' type='text/css' />
<script src='<?php echo $jsRoot;?>jquery/treeview/min.js' type='text/javascript'></script>
<script language='javascript'>$(function() { $("#tree").treeview({ persist: "cookie", collapsed: true, unique: true }) })</script>