function drawTop($headcontent = false) { global $_josh, $page, $user; ob_start('browser_output'); error_debug('starting top', __FILE__, __LINE__); if ($_josh['db']['language'] == 'mysql') { url_header_utf8(); } if (empty($page['helptext'])) { $page['helptext'] = getString('help_empty'); } $return = draw_doctype() . draw_container('head', ($_josh['db']['language'] == 'mysql' ? draw_meta_utf8() : '') . draw_container('title', $page['title']) . draw_favicon(DIRECTORY_WRITE . '/favicon.png') . draw_css_src('/css/global.css', 'screen') . draw_css_src('/css/print.css', 'print') . draw_css_src('/css/ie.css', 'ie') . draw_css_src(DIRECTORY_WRITE . '/screen.css', 'screen') . lib_get('jquery') . draw_javascript_src() . draw_javascript_src('/js/global.js') . draw_css(' #left table.left td.head, #left div.display div.title { background-color:#' . $page['color'] . '; } #left table.table th.table_title, #left form fieldset legend span, #left table.navigation { background-color:#' . $page['color'] . '; } #left table.navigation tr, #left form fieldset div.admin, #left table td.hilite { background-color:#' . $page['hilite'] . '; } ') . draw_javascript(' function confirmDelete(id) { if (confirm("' . getString('are_you_sure') . '")) { var newloc = "' . url_query_add(array('action' => 'delete', 'delete_id' => 'replaceme'), false) . '"; location.href = newloc.replace("replaceme", id); } } function changeDept(id, user_id) { location.href="' . $_josh['request']['path_query'] . '&newDeptID=" + id + "&contactID=" + user_id; } ') . drawSyndicateLink('bb') . $headcontent); $return .= draw_body_open() . ' <div id="container"> ' . draw_div('banner', draw_img(DIRECTORY_WRITE . '/banner' . langExt() . '.png', $_SESSION['homepage'])) . ' <div id="left"> <div id="help"> <div id="help_buttons">' . draw_link($_SESSION['homepage'], getString('home'), false, 'left') . draw_link('javascript:helpShow(' . user() . ')', getString('help_show'), false, array('class' => 'right' . ($user['help'] ? ' hidden' : false), 'id' => 'show_help_btn')) . draw_link('javascript:helpHide(' . user() . ')', getString('help_hide'), false, array('class' => 'right' . (!$user['help'] ? ' hidden' : false), 'id' => 'hide_help_btn')); if ($_SESSION['is_admin']) { if ($page['id']) { $return .= draw_link('/a/admin/page.php?id=' . $page['id'], getString('page_edit_info'), false, 'right'); } else { $return .= draw_link('/a/admin/page.php?module_id=' . $page['module_id'] . '&modulette_id=' . $page['modulette_id'] . '&url=' . urlencode($_josh['request']['page']), 'Create Page Here', false, 'right'); } } $return .= '</div><div id="help_text"'; if (!$user['help']) { $return .= ' class="hidden"'; } $return .= '>' . $page['helptext'] . '</div></div>'; if ($_josh['request']['folder'] == 'helpdesk') { $return .= drawNavigationHelpdesk(); } $return .= drawNavigation(); $_josh['drawn']['top'] = true; error_debug('finished drawing top', __FILE__, __LINE__); return $return; }
function draw_javascript($javascript = false) { if (!$javascript) { return draw_javascript_src(); } return ' <script language="javascript"> <!-- ' . $javascript . ' //--> </script> '; }
<?php include "include.php"; if ($posting) { db_query('DELETE FROM it_system_status'); db_query('INSERT INTO it_system_status ( message, updated_date, updated_user ) VALUES ("' . format_html($_POST['helpdesk_status']) . '", GETDATE(),' . user() . ')'); url_change('./'); } echo drawTop(); echo lib_get('tinymce'); echo draw_javascript_src('/_intranet.seedco.site/lib/tinymce/tinymce_3_3_8/tiny_mce.js'); echo draw_javascript('form_tinymce_init("/css/tinymce-helpdesk-status.css", true);'); ?> <table class="left" cellspacing="1"> <form action="<?php echo $request["path_query"]; ?> " method="post"> <?php echo drawHeaderRow("Update Status Message"); ?> <tr> <td><?php echo draw_form_textarea("helpdesk_status", $helpdeskStatus, "tinymce", false); ?> </td> </tr> <tr> <td class="bottom"><?php echo draw_form_submit("update message"); ?>
#grey ul { margin:10px 0px 0px 0px; padding:0px; list-style:circle; } #grey li { margin:2px 0px 0px 20px; padding:0px 0px 0px 5px; } //--> </style> <!--[if ie]> <style type="text/css"> #white { width:395px; height:334px; } #grey { width:179px; height:334px; } #logos { height:334px; } .top-right { right:-1px; } .bottom-right { right:-1px; } </style> <![endif]--> <?php echo draw_javascript_src(); ?> <script language="javascript"> <!-- function validate(form) { if (!form.email.value.length) { form.email.focus(); return false; } return true; } //--> </script> </head> <body> <div id="container">