| 1 | <table class="main_section" width="100%"> |
|---|
| 2 | <tbody> |
|---|
| 3 | <tr> |
|---|
| 4 | <td valign="top" class="default_menu"> |
|---|
| 5 | <!-- News --> |
|---|
| 6 | <script language="javascript"> |
|---|
| 7 | current_td=''; |
|---|
| 8 | old_td=''; |
|---|
| 9 | |
|---|
| 10 | function LoadTab(divname, tdname) |
|---|
| 11 | { |
|---|
| 12 | document.getElementById("DIV_MAIN").innerHTML = document.getElementById(divname).innerHTML; |
|---|
| 13 | |
|---|
| 14 | old_td=current_td; |
|---|
| 15 | current_td = tdname; |
|---|
| 16 | document.getElementById(current_td).className='TDActive'; |
|---|
| 17 | if(old_td != "") document.getElementById(old_td).className='off'; |
|---|
| 18 | } |
|---|
| 19 | </script> |
|---|
| 20 | <link rel="stylesheet" type="text/css" media="all" href="[css]/calendar-system.css" title="win2k-cold-1" /> |
|---|
| 21 | <script type="text/javascript" src="[js]/calendar.js"></script> |
|---|
| 22 | <script type="text/javascript" src="[js]/calendar-lang/calendar-en.js"></script> |
|---|
| 23 | <script type="text/javascript" src="[js]/calendar-setup.js"></script> |
|---|
| 24 | <div class="cap_border"> |
|---|
| 25 | <div class="main_caption"> |
|---|
| 26 | <div class="bevel"><b>Create or Edit News</b></div> |
|---|
| 27 | </div> |
|---|
| 28 | </div> |
|---|
| 29 | <table class="cont" width="100%"> |
|---|
| 30 | <tbody> |
|---|
| 31 | <tr> |
|---|
| 32 | <td><br /> |
|---|
| 33 | <div style="text-align: center;"> |
|---|
| 34 | <form name="addnew" action="./?active=news&mode=create-edit&[var.extramode;noerr]" method="post" id="addnewform"> |
|---|
| 35 | <input type="hidden" name="action" value="create-edit"> |
|---|
| 36 | <input type="hidden" name="item" value="[news.id]"> |
|---|
| 37 | <input type="hidden" name="new" value="[news.new.id;noerr]"> |
|---|
| 38 | <table style="width: 95%;"> |
|---|
| 39 | <tbody> |
|---|
| 40 | <tr> |
|---|
| 41 | <td colspan="2" style="text-align: center;"><font color="#ff0000">[message;noerr] </font></td> |
|---|
| 42 | </tr> |
|---|
| 43 | <tr> |
|---|
| 44 | <td style="text-align: right; width: 10%;"><b>Category:</b></td> |
|---|
| 45 | <td style="text-align: left; width: 90%;"><select name="cat_id" size="1" tabindex="1"> |
|---|
| 46 | <option value="[categories.id]" [sel;if [val]='[categories.id]';then 'selected']>[categories.name;block=option]</option> |
|---|
| 47 | </select></td> |
|---|
| 48 | </tr> |
|---|
| 49 | <tr> |
|---|
| 50 | <td style="text-align: right;"><b>Title:</b></td> |
|---|
| 51 | <td style="text-align: left;"><input name="news_title" size="80" value="[new.title; ifempty='']" maxlength="200" style="width: 100%;" type="text" tabindex="2" /></td> |
|---|
| 52 | </tr> |
|---|
| 53 | <tr> |
|---|
| 54 | <td style="text-align: right;"><b>Reference:</b></td> |
|---|
| 55 | <td style="text-align: left;"><input readonly="readonly" name="news_refer" size="80" value="[new.reference;ifempty='']" maxlength="200" style="width: 100%;" type="text" tabindex="2" /></td> |
|---|
| 56 | </tr> |
|---|
| 57 | <tr> |
|---|
| 58 | <td style="text-align: right;" valign="top"><br /><b>Body:</b></td> |
|---|
| 59 | <td style="margin-left: auto"> |
|---|
| 60 | <!-- Change Language Post --> |
|---|
| 61 | <table border="0" cellpadding="0" width="100%" style="border-collapse: collapse"> |
|---|
| 62 | <tbody> |
|---|
| 63 | <tr> |
|---|
| 64 | <td> |
|---|
| 65 | <table border="0" cellpadding="0" style="border-collapse: collapse"> |
|---|
| 66 | <tbody> |
|---|
| 67 | <tr> |
|---|
| 68 | <td class="TDActive" id="td_us"><span onclick="LoadTab('div_us','td_us')"><img border="0" src="[images]/flags/us.gif" width="16" height="11" /></span></td> |
|---|
| 69 | <td width="1"> </td> |
|---|
| 70 | <td class="off" id="td_pt"><span onclick="LoadTab('div_pt', 'td_pt')"><img border="0" src="[images]/flags/pt.gif" width="16" height="11" /></span></td> |
|---|
| 71 | <td width="1"> </td> |
|---|
| 72 | <td class="off" id="td_br"><span onclick="LoadTab('div_br', 'td_br')"><img border="0" src="[images]/flags/br.gif" width="16" height="11" /></span></td> |
|---|
| 73 | </tr> |
|---|
| 74 | </tbody> |
|---|
| 75 | </table> |
|---|
| 76 | </td> |
|---|
| 77 | </tr> |
|---|
| 78 | <tr> |
|---|
| 79 | <td class="TDActive"> |
|---|
| 80 | <table align="center" border="0" cellpadding="0" width="100%" style="border-collapse: collapse"> |
|---|
| 81 | <tbody> |
|---|
| 82 | <tr> |
|---|
| 83 | <td class="PageClearText"> |
|---|
| 84 | <div id="DIV_MAIN" ms_positioning="FlowLayout" align="justify"></div> |
|---|
| 85 | <div class="DivInvisible" id="div_us" ms_positioning="FlowLayout"><textarea class='mceEditor' id="data" name="data" cols="80" style="width: 100%;" rows="25" tabindex="3">[new.body;ifempty='Inglish']</textarea></div> |
|---|
| 86 | <div class="DivInvisible" id="div_pt" ms_positioning="FlowLayout"><textarea class='mceEditor' id="data" name="data" cols="80" style="width: 100%;" rows="25" tabindex="3">[new.body;ifempty='Portuguese']</textarea></div> |
|---|
| 87 | <div class="DivInvisible" id="div_br" ms_positioning="FlowLayout"><textarea class='mceEditor' id="data" name="data" cols="80" style="width: 100%;" rows="25" tabindex="3">[new.body;ifempty='Brasilian']</textarea></div> |
|---|
| 88 | </td> |
|---|
| 89 | </tr> |
|---|
| 90 | </tbody> |
|---|
| 91 | </table> |
|---|
| 92 | </td> |
|---|
| 93 | </tr> |
|---|
| 94 | <script language="javascript">LoadTab("div_us","td_us");</script> |
|---|
| 95 | </tbody> |
|---|
| 96 | </table> |
|---|
| 97 | <!-- /Change Language Post --> |
|---|
| 98 | </td> |
|---|
| 99 | </tr> |
|---|
| 100 | <!--tr> |
|---|
| 101 | <td style="text-align: right;" valign="top"><b>Body:</b></td> |
|---|
| 102 | <td style="margin-left: auto"><textarea class='mceEditor' id="data" name="data" cols="80" style="width: 100%;" rows="25" tabindex="3">[new.body;ifempty='']</textarea></td> |
|---|
| 103 | </tr> |
|---|
| 104 | <tr> |
|---|
| 105 | <td style="text-align: right;"><b>Publish date:</b></td> |
|---|
| 106 | <td style="text-align: left;"><b>[news.new.publish;noerr;frm=yyyy-mm-dd;ifempty=[var..now;frm=yyyy-mm-dd]]</b></td> |
|---|
| 107 | </tr--> |
|---|
| 108 | <tr> |
|---|
| 109 | <td style="text-align: right; width: 10%;"><b>Publish date:</b></td> |
|---|
| 110 | <td style="text-align: left; width: 90%;"><input type="text" name="date" id="f_date_a" readonly="1" value="[news.new.publish;noerr;frm=yyyy-mm-dd;ifempty=[var..now;frm=yyyy-mm-dd]]" /> <img src="[images]/img.gif" id="f_trigger_a" style="cursor: pointer; border: 1px solid red; vertical-align: bottom;" title="Date selector" onmouseover="this.style.background='red';" onmouseout="this.style.background=''" /></td> |
|---|
| 111 | </tr> |
|---|
| 112 | <tr> |
|---|
| 113 | <td style="text-align: right;"><b>Author:</b></td> |
|---|
| 114 | <td style="text-align: left;"><b>[news.new.author.name;noerr;ifempty=[user.name]]</b></td> |
|---|
| 115 | </tr> |
|---|
| 116 | <tr> |
|---|
| 117 | <td colspan="2" style="text-align: right;"><input class="button" name="preview" value="Preview" type="submit" style="font-weight: 700" tabindex="4" /> <input class="button" name="submit_news" value="Post News >>" type="submit" style="font-weight: 700" tabindex="5" /></td> |
|---|
| 118 | </tr> |
|---|
| 119 | </tbody> |
|---|
| 120 | </table> |
|---|
| 121 | <script type="text/javascript"> |
|---|
| 122 | Calendar.setup({ |
|---|
| 123 | inputField : "f_date_a", // id of the input field |
|---|
| 124 | ifFormat : "%Y-%m-%d %I:%M %p", // format of the input field |
|---|
| 125 | showsTime : true, // will display a time selector |
|---|
| 126 | button : "f_trigger_a", // trigger for the calendar (button ID) |
|---|
| 127 | singleClick : true, // double-click mode |
|---|
| 128 | step : 1 // show all years in drop-down boxes (instead of every other year as default) |
|---|
| 129 | }); |
|---|
| 130 | </script> |
|---|
| 131 | </form> |
|---|
| 132 | </div> |
|---|
| 133 | <br /> |
|---|
| 134 | </td> |
|---|
| 135 | </tr> |
|---|
| 136 | </tbody> |
|---|
| 137 | </table> |
|---|
| 138 | <br /> |
|---|
| 139 | <!-- /News --> |
|---|
| 140 | </td> |
|---|
| 141 | <td class="right_menu" width="25%"> |
|---|
| 142 | <!-- News Options --> |
|---|
| 143 | <table style="width: 100%; border-collapse: collapse; border-spacing: 0px;"> |
|---|
| 144 | <tbody> |
|---|
| 145 | <tr> |
|---|
| 146 | <td> |
|---|
| 147 | <div class="cap_border"> |
|---|
| 148 | <div class="right_caption"> |
|---|
| 149 | <div class="bevel"><b>News Options</b></div> |
|---|
| 150 | </div> |
|---|
| 151 | </div> |
|---|
| 152 | <table class="cont"> |
|---|
| 153 | <tbody> |
|---|
| 154 | <tr> |
|---|
| 155 | <td class="link_button"><img src="[images]/arrow_16.png" style="width: 16px; height: 16px; vertical-align: middle;" alt="" /><a href="?active=news">News Front Page</a></td> |
|---|
| 156 | </tr> |
|---|
| 157 | <tr> |
|---|
| 158 | <td class="link_button"><img src="[images]/arrow_over_16.png" style="width: 16px; height: 16px; vertical-align: middle;" alt="" /><a href="?active=news&mode=create-edit">Create / Edit News</a></td> |
|---|
| 159 | </tr> |
|---|
| 160 | <tr> |
|---|
| 161 | <td class="link_button"><img src="[images]/arrow_16.png" style="width: 16px; height: 16px; vertical-align: middle;" alt="" /><a href="?active=news&mode=cat">Categories</a></td> |
|---|
| 162 | </tr> |
|---|
| 163 | </tbody> |
|---|
| 164 | </table> |
|---|
| 165 | <br /> |
|---|
| 166 | <b></b></td> |
|---|
| 167 | </tr> |
|---|
| 168 | </tbody> |
|---|
| 169 | </table> |
|---|
| 170 | <!-- /News Options --> |
|---|
| 171 | <!-- Menu Right --> |
|---|
| 172 | [onload;file=template_menu.html] |
|---|
| 173 | <!-- /Menu Right --> |
|---|
| 174 | </td> |
|---|
| 175 | </tr> |
|---|
| 176 | </tbody> |
|---|
| 177 | </table> |
|---|