• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP styleRenderBoxBottom函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中styleRenderBoxBottom函数的典型用法代码示例。如果您正苦于以下问题:PHP styleRenderBoxBottom函数的具体用法?PHP styleRenderBoxBottom怎么用?PHP styleRenderBoxBottom使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了styleRenderBoxBottom函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: show

    function show($extra = '', $js_tabs = false, $alignment = 'left', $opt_flat = true)
    {
        global $AppUI, $w2Pconfig, $currentTabId, $currentTabName, $m, $a;
        $this->loadExtras($m, $a);
        $uistyle = $AppUI->getPref('UISTYLE') ? $AppUI->getPref('UISTYLE') : $w2Pconfig['host_style'];
        if (!$uistyle) {
            $uistyle = 'web2project';
        }
        if (($a == 'addedit' || $a == 'view' || $a == 'viewuser') && function_exists('styleRenderBoxBottom')) {
            echo styleRenderBoxBottom();
        }
        reset($this->tabs);
        $s = '';
        // tabbed / flat view options
        if ($AppUI->getPref('TABVIEW') == 0) {
            if ($opt_flat) {
                $s .= '<table border="0" cellpadding="2" cellspacing="0" width="100%">';
                $s .= '<tr>';
                $s .= '<td width="54" nowrap="nowrap">';
                $s .= '<a class="button" href="' . $this->baseHRef . 'tab=0"><span>' . $AppUI->_('tabbed') . '</span></a>';
                $s .= '</td>';
                $s .= '<td nowrap="nowrap">';
                $s .= '<a class="button" href="' . $this->baseHRef . 'tab=-1"><span>' . $AppUI->_('flat') . '</span></a>';
                $s .= '</td>' . $extra . '</tr></table>';
                echo $s;
            }
        } else {
            if ($extra) {
                echo '<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>' . $extra . '</tr>' . '</table>';
            } else {
                # echo "<img src=\"".w2PfindImage('shim.gif')."\" height=\"10\" width=\"1\" alt=\"\" />";
            }
        }
        if ($this->active < 0 || $AppUI->getPref('TABVIEW') == 2) {
            // flat view, active = -1
            echo '<table border="0" cellpadding="2" cellspacing="0" width="100%">';
            foreach ($this->tabs as $k => $v) {
                echo '<tr><td><strong>' . ($v[2] ? $v[1] : $AppUI->_($v[1])) . '</strong></td></tr><tr><td>';
                $currentTabId = $k;
                $currentTabName = $v[1];
                include $this->baseInc . $v[0] . '.php';
                echo '</td></tr>';
            }
            echo '</table>';
        } else {
            // tabbed view
            $s = '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
            $s .= '<tr><td><table align="' . $alignment . '" border="0" cellpadding="0" cellspacing="0">';
            if (count($this->tabs) - 1 < $this->active) {
                //Last selected tab is not available in this view. eg. Child tasks
                $this->active = 0;
            }
            foreach ($this->tabs as $k => $v) {
                $class = $k == $this->active ? 'tabon' : 'taboff';
                $sel = $k == $this->active ? 'Selected' : '';
                $s .= '<td valign="middle"><img src="./style/' . $uistyle . '/bar_top_' . $sel . 'left.gif" id="lefttab_' . $k . '" border="0" alt="" /></td>';
                $s .= '<td id="toptab_' . $k . '" valign="middle" nowrap="nowrap" class="' . $class . '">&nbsp;<a href="';
                if ($this->javascript) {
                    $s .= 'javascript:' . $this->javascript . '(' . $this->active . ', ' . $k . ')';
                } elseif ($js_tabs) {
                    $s .= 'javascript:show_tab(' . $k . ')';
                } else {
                    $s .= $this->baseHRef . 'tab=' . $k;
                }
                $s .= '">' . ($v[2] ? $v[1] : $AppUI->_($v[1])) . '</a>&nbsp;</td>';
                $s .= '<td valign="middle" ><img id="righttab_' . $k . '" src="./style/' . $uistyle . '/bar_top_' . $sel . 'right.gif" border="0" alt="" /></td>';
                $s .= '<td class="tabsp"><img src="' . w2PfindImage('shim.gif') . '"/></td>';
            }
            $s .= '</table></td></tr>';
            //round the right top of the tab box
            $s .= '<tr><td>';
            $s .= '<table width="100%" cellspacing="0" cellpadding="0" border="0">';
            $s .= '<tbody>';
            $s .= '<tr>';
            $s .= '	<td valign="bottom" width="100%" background="./style/' . $uistyle . '/tabbox_top.jpg" align="left">';
            $s .= '		<img src="./style/' . $uistyle . '/tabbox_top.jpg"/>';
            $s .= '	</td>';
            $s .= '</tr>';
            $s .= '</tbody>';
            $s .= '</table>';
            $s .= '</td></tr>';
            $s .= '<tr><td width="100%" colspan="' . (count($this->tabs) * 4 + 1) . '" class="tabox">';
            echo $s;
            //Will be null if the previous selection tab is not available in the new window eg. Children tasks
            if ($this->tabs[$this->active][0] != '') {
                $currentTabId = $this->active;
                $currentTabName = $this->tabs[$this->active][1];
                if (!$js_tabs) {
                    require $this->baseInc . $this->tabs[$this->active][0] . '.php';
                }
            }
            if ($js_tabs) {
                foreach ($this->tabs as $k => $v) {
                    echo '<div class="tab" id="tab_' . $k . '">';
                    $currentTabId = $k;
                    $currentTabName = $v[1];
                    require $this->baseInc . $v[0] . '.php';
                    echo '</div>';
                    echo '<script language="JavaScript" type="text/javascript">
						<!--
//.........这里部分代码省略.........
开发者ID:joly,项目名称:web2project,代码行数:101,代码来源:overrides.php


示例2: styleRenderBoxBottom

</label>
	</td>

	<td align="right" width="50%" nowrap="nowrap">
		<input class="button" type="submit" name="do_report" value="<?php 
echo $AppUI->_('submit');
?>
" />
	</td>
</tr>
</table>
</form>
<?php 
if ($do_report) {
    if (function_exists('styleRenderBoxBottom')) {
        echo styleRenderBoxBottom();
    }
    echo '<br />';
    if (function_exists('styleRenderBoxTop')) {
        echo styleRenderBoxTop();
    }
    echo '<table cellspacing="0" cellpadding="4" border="0" width="100%" class="std">
	<tr>
		<td>';
    // Let's figure out which users we have
    $user_list = w2PgetUsersHashList();
    // Now which tasks will we need and the real allocated hours (estimated time / number of users)
    // Also we will use tasks with duration_type = 1 (hours) and those that are not marked
    // as milstones
    // GJB: Note that we have to special case duration type 24 and this refers to the hours in a day, NOT 24 hours
    $working_hours = $w2Pconfig['daily_working_hours'];
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:userperformance.php


示例3: show

 function show($extra = '', $js_tabs = false, $alignment = 'left', $opt_flat = true)
 {
     global $AppUI, $w2Pconfig, $currentTabId, $currentTabName, $m, $a;
     $this->loadExtras($m, $a);
     $uistyle = $AppUI->getPref('UISTYLE') ? $AppUI->getPref('UISTYLE') : $w2Pconfig['host_style'];
     if (!$uistyle) {
         $uistyle = 'web2project';
     }
     if (($a == 'addedit' || $a == 'view' || $a == 'viewuser') && function_exists('styleRenderBoxBottom')) {
         echo styleRenderBoxBottom();
     }
     reset($this->tabs);
     $s = '';
     if ($extra) {
         echo '<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>' . $extra . '</tr>' . '</table>';
     }
     // @todo     check count before drawing anything
     $s .= '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
     $s .= '<tr><td>';
     $s .= '<ul class="nav nav-tabs">';
     foreach ($this->tabs as $k => $v) {
         $class = $k == $this->active ? 'class="active"' : '';
         $s .= '<li ' . $class . '><a href="';
         if ($this->javascript) {
             $s .= 'javascript:' . $this->javascript . '(' . $this->active . ', ' . $k . ')';
         } elseif ($js_tabs) {
             $s .= 'javascript:show_tab(' . $k . ')';
         } else {
             $s .= $this->baseHRef . 'tab=' . $k;
         }
         $s .= '">';
         $s .= '&nbsp;' . $AppUI->_($v[1]) . '&nbsp;';
         $s .= '</li>';
     }
     $s .= '</ul>';
     $s .= '</td></tr>';
     $s .= '<tr><td width="100%" colspan="' . (count($this->tabs) * 4 + 1) . '" class="tabox">';
     echo $s;
     //Will be null if the previous selection tab is not available in the new window eg. Children tasks
     if (isset($this->tabs[$this->active][0]) && $this->tabs[$this->active][0] != '') {
         $currentTabId = $this->active;
         $currentTabName = $this->tabs[$this->active][1];
         if (!$js_tabs) {
             require $this->baseInc . $this->tabs[$this->active][0] . '.php';
         }
     }
     if ($js_tabs) {
         foreach ($this->tabs as $k => $v) {
             echo '<div class="tab" id="tab_' . $k . '">';
             $currentTabId = $k;
             $currentTabName = $v[1];
             require $this->baseInc . $v[0] . '.php';
             echo '</div>';
             echo '<script language="javascript" type="text/javascript">
                 <!--
                 show_tab(' . $this->active . ');
                 //-->
                 </script>';
         }
     }
     echo '</td></tr></table>';
 }
开发者ID:sim3083,项目名称:style-bootstrap,代码行数:62,代码来源:overrides.php



注:本文中的styleRenderBoxBottom函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP styleRenderBoxTop函数代码示例发布时间:2022-05-23
下一篇:
PHP styleDate函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap