Пример #1
0
echo format_datetime($row->update_time);
?>
</td></tr>
</th></tr>
</table>

<?php 
echo jquery_tab_page_close();
echo jquery_tab_page_open('assignments');
?>

<div class='toolbar_sub'>
<?php 
echo toolbar_button('request_attendance', 'Request Attendance');
echo toolbar_button('add_site', 'Add Site', 'glyphicon glyphicon-plus');
echo toolbar_button('remove_site', 'Remove Site', 'glyphicon glyphicon-remove');
?>
</div>
<table cellpadding='0' cellspacing='0' class="DataRows">
<tr>
	<th width="5%"><?php 
echo form_checkids_header('assignment_check_id');
?>
</th>
	<th>Shift Type</th>
	<th>Assign Type</th>
	<th>Site Name</th>
	<th>Next Shift</th>
</tr>
<?php 
foreach ($assignment_rows as $assignment_row) {
Пример #2
0
<?php 
echo jquery_tab_page_close();
echo jquery_tab_page_open('assignments');
?>

<div class='toolbar_sub'>
<?php 
echo toolbar_button('request_attendance', 'Request Attendance', 'glyphicon glyphicon-calendar');
?>
 &nbsp;
<?php 
echo toolbar_button('add_staff', 'Add Staff', 'glyphicon glyphicon-plus');
?>
 &nbsp;
<?php 
echo toolbar_button('remove_staff', 'Remove Staff', 'glyphicon glyphicon-remove');
?>
</div>
<table cellpadding='0' cellspacing='0' class="DataRows">
<tr>
	<th width="5%"><?php 
echo form_checkids_header('assignment_check_id');
?>
</th>
	<th>Shift Type</th>
	<th>Assign Type</th>
	<th>Staff Name</th>
</tr>
<?php 
foreach ($assignment_rows as $assignment_row) {
    ?>
Пример #3
0
function template_common_prologue($args)
{
    global $AdditionalHeader, $CommonScript, $FindScript, $HomePage;
    global $MetaDescription, $MetaKeywords, $page, $pagestore, $ScriptBase;
    global $SeparateHeaderWords, $SeparateTitleWords, $ShortcutIcon;
    global $StyleScript, $TableSortScript, $UserName, $UseSpamRevert, $WikiLogo;
    global $WikiName;
    if ($SeparateTitleWords) {
        $args['title'] = html_split_name($args['title']);
    }
    ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta name="KEYWORDS" content="<?php 
    print $MetaKeywords;
    ?>
">
<meta name="DESCRIPTION" content="<?php 
    print $MetaDescription;
    ?>
">
<?php 
    if ($args['norobots']) {
        ?>
    <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<?php 
    }
    ?>
<link type="text/css" rel="stylesheet" href="<?php 
    print $StyleScript;
    ?>
">
<link type="text/css" rel="stylesheet" media="print" href="<?php 
    print $StyleScript;
    ?>
&amp;csstype=print">
<script src="<?php 
    print $TableSortScript;
    ?>
" type="text/javascript"></script>
<script src="<?php 
    print $CommonScript;
    ?>
" type="text/javascript"></script>
<?php 
    if ($ShortcutIcon) {
        ?>
    <link rel="SHORTCUT ICON" href="<?php 
        echo $ShortcutIcon;
        ?>
">
<?php 
    }
    ?>
<link rel="ALTERNATE" title="<?php 
    echo htmlspecialchars($WikiName);
    ?>
" href="<?php 
    echo $ScriptBase;
    ?>
?action=rss&page=<?php 
    echo htmlspecialchars($page);
    ?>
" TYPE="application/rss+xml">
<title><?php 
    print $args['title'] . ' - ' . htmlspecialchars($WikiName);
    ?>
</title>
</head>

<body onLoad="bodyOnLoad();">
<NOINDEX>

<?php 
    if ($AdditionalHeader) {
        print '<span class="printhide">';
        include $AdditionalHeader;
        print '</span>';
    }
    ?>

<div id="header">

  <div id="toprightbox" class="printhide">
    <div class="jumpsearch">
        <form method="get" action="<?php 
    print $FindScript;
    ?>
">
        <input type="hidden" name="action" value="find">

        Search:&nbsp;<input 
	type="text" name="find" size="20" accesskey=","><?php 
    $jumpSearchPage = $pagestore->page('JumpSearch');
    if ($jumpSearchPage->exists()) {
        print '&nbsp;<a href="' . viewURL('JumpSearch') . '">JumpSearch&nbsp;Help</a>';
    }
    ?>

        <?php 
    if ($args['headlink'] && $args['headlink'] != $HomePage && $args['headlink'] != 'RecentChanges' && $pagestore->getChildren($args['headlink'])) {
        ?>
        <br><input type="checkbox" name="branch_search" value="<?php 
        print htmlspecialchars($args['headlink']);
        ?>
">
        <label name="branch_search">Search only children of <b><?php 
        echo $args['headlink'];
        ?>
</b></label>
        <?php 
    }
    ?>
	
        </form>
    </div>
	
    <?php 
    if (isset($args['tree'])) {
        $tree = $pagestore->getTreeFromLeaves($HomePage, $args['headlink']);
        drawTree($tree, true, $args['headlink']);
    }
    ?>

  </div>

  <div id="topleftbox">
    <div class="logo printhide">
    <a href="<?php 
    print viewURL($HomePage);
    ?>
"><img src="<?php 
    print $WikiLogo;
    ?>
" alt="[Home]"></a>
    </div>
    <h1>
	
    <?php 
    print $args['heading'];
    if ($args['headlink'] != '') {
        if ($SeparateHeaderWords) {
            print html_split_name($args['headlink']);
        } else {
            print $args['headlink'];
        }
    }
    if (count($twin = $pagestore->twinpages($args['headlink']))) {
        // point at the sisterwiki's version
        print '<sup class="printhide">';
        foreach ($twin as $site) {
            print " " . html_twin($site[0], $site[1]);
        }
        print '</sup>';
    }
    print $args['headsufx'] . "</h1>\n";
    if (isset($args['redirect_from']) && $args['redirect_from']) {
        print '(Redirected from <a href="' . viewURL($args['redirect_from']) . '&no_redirect=1">';
        if ($SeparateHeaderWords) {
            print htmlspecialchars(html_split_name($args['redirect_from']));
        } else {
            print htmlspecialchars($args['redirect_from']);
        }
        print "</a>)\n";
    }
    ?>
	
    <div class="quote printhide">
    <?php 
    if (isset($args['quote'])) {
        $quotepage = $pagestore->page('AnnoyingQuote');
        $quote = $quotepage->read();
        if ($quotepage->exists()) {
            global $ParseEngine;
            $paragraphs = explode("\n\n", $quotepage->text);
            $last_paragraph = parseText(trim(array_pop($paragraphs)), $ParseEngine, $page);
            print $last_paragraph;
        }
    }
    ?>
    </div>
  </div>

</div>
</NOINDEX>
	
<div id="contentbox">

 <?php 
    if (isset($args["toolbar"])) {
        ?>
  <div class="toolbar" id="toolbar-top">
    <?php 
        if ($args['spam_revert'] && $UseSpamRevert && $UserName) {
            ?>
        <form name="revertForm" method="post" action="<?php 
            print revertURL($page);
            ?>
"></form>
        <?php 
            print toolbar_button('javascript:spamRevert();', 'Spam Revert', 0);
            ?>
    <?php 
        }
        ?>
    <td><?php 
        toolbar($page, $args);
        ?>
  </div>
 <?php 
    }
    ?>

<?php 
}
Пример #4
0
/** 
 * @ingroup toolbar_helper
 * Function to show a toolbar item.
 * @param string $name			Name of the field.
 * @param string $title			Title to show next on the item.
 * @param string $image_name	Name of the image to show on the toolbar item.
 * @return string 				HTML to display on the page.
 */
function toolbar_item($name, $title, $icon_name = '', $js_script = '')
{
    return toolbar_button($name, $title, $icon_name, $js_script);
}