17 require_once SQ_SYSTEM_ROOT.
'/core/include/backend_outputter.inc';
39 var $_form_data = Array();
67 $this->_form_data = Array(
'form_name' => $form_name,
'url' => $url);
80 if (!headers_sent()) {
81 if ($this->_charset) {
82 header(
"Content-type: text/html; charset=$this->_charset");
84 header(
'Content-type: text/html; charset='.SQ_CONF_DEFAULT_CHARACTER_SET);
90 <title><?php echo translate(
'hipo_processing'); ?></title>
95 foreach ($this->_css_includes as $file) {
100 foreach ($GLOBALS[
'SQ_SYSTEM']->lm->getJavascriptIncludes() as $js_include) {
105 $this->
addJsInclude(sq_web_path(
'lib').
'/html_form/html_form.js');
106 $this->
addJsInclude(sq_web_path(
'lib').
'/js/general.js');
111 foreach ($this->_js_includes as $file) {
115 <script type=
"text/javascript">
117 var ON_LOAD_TIME_OUT = null;
118 function page_on_load() {
120 foreach ($this->_on_load_calls as $call) {
129 <body bgcolor=
"#FFFFFF" onLoad=
"javascript: page_on_load();">
130 <table border=
"0" cellspacing=
"0" cellpadding=
"0" width=
"100%">
132 <td><img src=
"<?php echo $this->filesPath('images/blank.gif');?>" width=
"1" height=
"20" /></td>
136 <form name=
"<?php echo $this->_form_data['form_name']; ?>" method=
"post" action=
"<?php echo $this->_form_data['url']; ?>" enctype=
"multipart/form-data">
138 foreach ($this->_hidden_fields as $name => $value) {
139 hidden_field($name, $value);
176 if ($section[
'type'] ==
'raw') {
177 echo $section[
'contents'];
181 <a name=
"section_<?php echo $section['section_count']; ?>"></a>
182 <table width=
"100%" cellpadding=
"0" cellspacing=
"0" border=
"0">
184 if ($section[
'heading']) {
189 <td
class=
"sq-backend-section-subheading" colspan=
"3"><?php echo $section[
'heading'];?></td>
195 <tr
class=
"sq-backend-section-heading-container">
197 <table border=
"0" cellspacing=
"0" cellpadding=
"0">
199 <td
class=
"sq-backend-section-heading"><?php echo $section[
'heading'];?></td>
200 <td><img src=
"<?php echo $this->filesPath('images/section_icon.gif');?>" width=
"27" height=
"21" /></td>
212 <td colspan=
"2"><img src=
"<?php echo $this->filesPath('images/blank.gif');?>" width=
"1" height=
"10" /></td>
215 <td><img src=
"<?php echo $this->filesPath('images/blank.gif');?>" width=
"10" height=
"1" /></td>
217 <table cellspacing=
"0" cellpadding=
"0" border=
"0" width=
"100%">
220 for ($j = 0; $j < count($section[
'areas']); $j++) {
221 switch ($section[
'areas'][$j][
'area_type']) {
225 <td width=
"100%" valign=
"top" colspan=
"2">
235 $field =& $section[
'areas'][$j];
236 switch ($field[
'format']) {
239 if ($field[
'hidden']) {
240 $style =
'style="display: none"';
242 if ($field[
'id_name']) {
243 $id =
'id="'.$field[
'id_name'].
'"';
246 <tr <?php echo $style; ?> <?php echo $id; ?>>
247 <td
class=
"sq-backend-field sq-backend-field-newline" colspan=
"2">
248 <a name=
"field_<?php echo $field['field_count']; ?>"></a>
249 <?php echo $field[
'name'];?>
253 <td
class=
"sq-backend-data sq-backend-data-newline" colspan=
"2">
255 echo $field[
'contents'];
256 if ($field[
'note']) $this->
note($field[
'note']);
266 <td
class=
"sq-backend-data" style=
"text-align: right;" colspan=
"2">
268 echo $field[
'contents'];
269 if ($field[
'note']) $this->
note($field[
'note']);
282 if ($field[
'hidden']) {
283 $style =
'style="display: none"';
285 if ($field[
'id_name']) {
286 $id =
'id="'.$field[
'id_name'].
'"';
289 <tr <?php echo $style; ?> <?php echo $id; ?>>
290 <td
class=
"sq-backend-field">
291 <a name=
"field_<?php echo $field['field_count']; ?>"></a>
292 <?php echo $field[
'name'];?>
294 <td
class=
"sq-backend-data">
296 echo $field[
'contents'];
297 if ($field[
'note']) $this->
note($field[
'note']);
306 trigger_localised_error(
'HIPO0059', E_USER_ERROR, $section[
'areas'][$j][
'area_type']);
315 <td><img src=
"<?php echo $this->filesPath('images/blank.gif');?>" width=
"10" height=
"1" /></td>
318 <table width=
"100%" cellpadding=
"0" cellspacing=
"0" border=
"0"><tr><td width=
"100%"><img src=
"<?php echo $this->filesPath('images/blank.gif');?>" width=
"1" height=
"10" /></td></tr></table>