25 require_once dirname(__FILE__).
'/../../../../core/include/init.inc';
26 require_once SQ_LIB_PATH.
'/html_form/html_form.inc';
27 require_once SQ_FUDGE_PATH.
'/var_serialise/var_serialise.inc';
29 if (empty($GLOBALS[
'SQ_SYSTEM']->user) || !($GLOBALS[
'SQ_SYSTEM']->user->canAccessBackend() || $GLOBALS[
'SQ_SYSTEM']->user->type() ==
'simple_edit_user')){
33 if (!isset($_GET[
'title'])) $_GET[
'title'] =
"";
37 <html style=
"width: 400px; height: 200px;">
39 <title>Insert Acronym</title>
43 $include_list = Array(sq_web_path(
'lib').
'/js/translation.js');
45 $locales = $GLOBALS[
'SQ_SYSTEM']->lm->getCumulativeLocaleParts($GLOBALS[
'SQ_SYSTEM']->lm->getCurrentLocale());
47 foreach($locales as $locale) {
48 if (file_exists(SQ_DATA_PATH.
'/public/system/core/js_strings.'.$locale.
'.js')) {
49 $include_list[] = sq_web_path(
'data').
'/system/core/js_strings.'.$locale.
'.js';
53 foreach($include_list as $link) {
54 ?><script type=
"text/javascript" src=
"<?php echo $link; ?>"></script>
58 <script type=
"text/javascript" src=
"../../core/popup.js"></script>
59 <script type=
"text/javascript" src=
"<?php echo sq_web_path('fudge').'/var_serialise/var_serialise.js' ?>"></script>
60 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/html_form/html_form.js' ?>"></script>
61 <script type=
"text/javascript" src=
"<?php echo sq_web_path('lib').'/js/general.js' ?>"></script>
63 <script type=
"text/javascript">
66 setTimeout(
'self.focus()',100);
70 __dlg_init(
"matrixInsertAcronym");
71 setTimeout(
'self.focus()',100);
76 var fields = [
"title"];
77 var param =
new Object();
78 var f = document.main_form;
80 param[
"title"] = form_element_value(f.title);
81 param[
"acronym"] = form_element_value(f.acronym);
83 __dlg_close(
"matrixInsertAcronym", param);
88 __dlg_close(
"matrixInsertAcronym", null);
94 <style type=
"text/css">
98 font: 11px Tahoma,Verdana,sans-serif;
105 font: 11px Tahoma,Verdana,sans-serif;
116 border-bottom: 1px solid black;
122 padding: 0px 10px 5px 5px;
123 border-color: #725B7D;
126 .fl { width: 9em;
float: left; padding: 2px 5px; text-align: right; }
127 .fr { width: 7em;
float: left; padding: 2px 5px; text-align: right; }
130 form { padding: 0px; margin: 0px; }
132 select, input, button {
133 font: 11px Tahoma,Verdana,sans-serif;
141 .buttonColor, .buttonColor-hilite {
144 border-color: #9E86AA #725B7D #725B7D #9E86AA;
147 .buttonColor-hilite {
148 border-color: #402F48;
151 .buttonColor-chooser, .buttonColor-nocolor, .buttonColor-nocolor-hilite {
155 border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
158 .buttonColor-nocolor, .buttonColor-nocolor-hilite { padding: 0px; }
159 .buttonColor-nocolor-hilite { background: #402F48; color: #FFFFFF; }
163 <body onload=
"Javascript: Init();">
164 <div
class=
"title"><?php echo translate(
'insert_acronym'); ?></div>
165 <form action=
"" method=
"get" name=
"main_form">
168 <td valign=
"top" width=
"100%">
170 <legend><b><?php echo translate(
'general'); ?></b></legend>
171 <table style=
"width:100%">
173 <td
class=
"label">Acronym:</td>
174 <td colspan=
"3"><?php text_box(
'acronym', trim($_GET[
'acronym']), 40, 0);?>
178 <td
class=
"label">Definition:</td>
179 <td colspan=
"3"><?php text_box(
'title',trim($_GET[
'title']), 40, 0);?>
188 <div style=
"margin-top: 5px; margin-right: 5px; text-align: right;">
190 <button type=
"button" name=
"ok" onclick=
"return onOK();"><?php echo translate(
'ok'); ?></button>
191 <button type=
"button" name=
"cancel" onclick=
"return onCancel();"><?php echo translate(
'cancel'); ?></button>