function topRight($e = "index_e.php", $d = "index.php", $c = "index_ch.php") { $ret = '<div class="row"> <div class="col-sm-2">' . langs($e, $d, $c) . '</div>'; $ret .= '<div class="col-sm-8 col-8 col-lg-8 col-md-8"><h1>William Cuthbertson</h1></div>'; $ret .= '<div class="col-sm-2 col-2 col-md-2 col-lg-2 tog" >' . toggle() . '</div> </div>'; $ret .= "<a id='top'></a>"; print $ret; }
function chooseLang() { echo '<form action="' . $GLOBALS['rel_siteurl'] . '/textpattern/setup/index.php" method="post">', '<table id="setup" cellpadding="0" cellspacing="0" border="0">', tr(tda(hed('Welcome to Textpattern', 3) . graf('Please choose a language:') . langs() . graf(fInput('submit', 'Submit', 'Submit', 'publish')) . sInput('getDbInfo'), ' width="400" height="50" colspan="4" align="left"')), '</table></form>'; }
* You should have received a copy of the GNU General Public License * along with Kimai; If not, see <http://www.gnu.org/licenses/>. */ // insert KSPI $isCoreProcessor = 0; $dir_templates = "templates/floaters/"; require "../../includes/kspi.php"; switch ($axAction) { // ================================================= // = displays edit comment dialog for running task = // ================================================= case 'edit_running_comment': if (isset($kga['customer'])) { die; } $tpl->assign('langs', langs()); $last_event = get_event_last(); $tpl->assign('id', $last_event['zef_ID']); $tpl->assign('comment', $last_event['zef_comment']); $tpl->assign('comment_active', $last_event['zef_comment_type']); $tpl->assign('comment_types', $comment_types); $tpl->assign('comment_values', array('0', '1', '2')); $tpl->display("edit_running_comment.tpl"); break; case "add_edit_record": if (isset($kga['customer'])) { die; } // ============================================== // = display edit dialog for timesheet record = // ==============================================
function chooseLang() { echo n . '<div id="setup_container" class="txp-container">', n . '<div class="txp-setup">', n . hed('Welcome to Textpattern', 1), n . '<form action="' . txpspecialchars($_SERVER['PHP_SELF']) . '" method="post">', n . langs(), n . graf(fInput('submit', 'Submit', 'Submit', 'publish')), n . sInput('getDbInfo'), n . '</form>', n . '</div>', n . '</div>'; }
/** * Renders stage 0: welcome/choose language panel. */ function chooseLang() { $_SESSION = array(); echo n . '<div class="txp-setup">', hed('Welcome to Textpattern CMS', 1), n . '<form class="prefs-form" method="post" action="' . txpspecialchars($_SERVER['PHP_SELF']) . '">', langs(), graf(fInput('submit', 'Submit', 'Submit', 'publish')), sInput('getDbInfo'), n . '</form>', n . '</div>'; }
$tpl->assign('arr_evt', $arr_evt); } else { $tpl->assign('arr_evt', '0'); } $tpl->assign('evt_display', $tpl->fetch("evt.tpl")); $tpl->assign('selected_evt_filter', -2); $tpl->assign('curr_user', $kga['usr']['usr_name']); if ($kga['usr']['usr_sts'] == 0) { $tpl->assign('arr_grp', get_arr_grp(get_cookie('ap_ext_show_deleted_groups', 0))); } else { $tpl->assign('arr_grp', get_arr_grp_by_leader($kga['usr']['usr_ID'], get_cookie('ap_ext_show_deleted_groups', 0))); } if ($kga['usr']['usr_sts'] == 0) { $tpl->assign('arr_usr', get_arr_usr(get_cookie('ap_ext_show_deleted_users', 0))); } else { $tpl->assign('arr_usr', get_arr_watchable_users($kga['usr']['usr_ID'])); } $tpl->assign('showDeletedGroups', get_cookie('ap_ext_show_deleted_groups', 0)); $tpl->assign('showDeletedUsers', get_cookie('ap_ext_show_deleted_users', 0)); $tpl->assign('languages', langs()); $tpl->assign('timezones', timezoneList()); $admin['users'] = $tpl->fetch("users.tpl"); $admin['groups'] = $tpl->fetch("groups.tpl"); $admin['advanced'] = $tpl->fetch("advanced.tpl"); if ($kga['show_sensible_data']) { $admin['database'] = $tpl->fetch("database.tpl"); } else { $admin['database'] = "You don't have permission to see this information ..."; } $tpl->assign('admin', $admin); $tpl->display('main.tpl');