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