/[health_html]/templates/edit.tpl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /templates/edit.tpl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by ravilov, Fri Aug 3 11:21:16 2001 UTC revision 1.4 by ravilov, Thu Aug 16 09:08:42 2001 UTC
# Line 8  function InsertTags(src, obj, t) { Line 8  function InsertTags(src, obj, t) {
8          alert(t + ": not yet implemented.");          alert(t + ": not yet implemented.");
9          src.blur();          src.blur();
10          if (!obj) return;          if (!obj) return;
11          var o = eval('document.forms[0].elements["'+obj+'"]');          var o = eval("document.forms[0].elements['"+obj+"']");
12          if (!o) return;          if (!o) return;
13          o.focus();          o.focus();
14          // ...          // ...
# Line 22  function Underline(src, obj) { InsertTag Line 22  function Underline(src, obj) { InsertTag
22    
23  <form action="{$FORM_ACTION}" method=post enctype="multipart/form-data">  <form action="{$FORM_ACTION}" method=post enctype="multipart/form-data">
24  {if ($ed_preview)}  {if ($ed_preview)}
25  <table border=1 cellspacing=0 cellpadding=5 width="100%"><tr><td>  <table border=1 cellspacing=0 cellpadding=6 width="100%"><tr><td>
26  {if (! $ed_clr_main && $ed_titlepic_url && ($ed_titlepic_pos == 1 || $ed_titlepic_pos == 2 || $ed_titlepic_pos == 3))}  {if (! $ed_clr_main && $ed_titlepic_url && ($ed_titlepic_pos == 1 || $ed_titlepic_pos == 2 || $ed_titlepic_pos == 3))}
27    <p align={if ($ed_titlepic_pos == 1)}left{/if}{if ($ed_titlepic_pos == 2)}center{/if}{if ($ed_titlepic_pos == 3)}right{/if}><img src="{$newspicdir}{$ed_titlepic_url}" border=0 alt="{$ed_titlepic_alt}"{if ($ed_titlepic_width)} width={$ed_titlepic_width}{/if}{if ($ed_titlepic_height)} height={$ed_titlepic_height}{/if}></p>    <p align={if ($ed_titlepic_pos == 1)}left{/if}{if ($ed_titlepic_pos == 2)}center{/if}{if ($ed_titlepic_pos == 3)}right{/if}><img src="{$newspicdir}{$ed_titlepic_url}" border=0 alt="{$ed_titlepic_alt}"{if ($ed_titlepic_width)} width={$ed_titlepic_width}{/if}{if ($ed_titlepic_height)} height={$ed_titlepic_height}{/if}></p>
28  {/if}  {/if}
# Line 79  function Underline(src, obj) { InsertTag Line 79  function Underline(src, obj) { InsertTag
79  </table>  </table>
80  {else}  {else}
81  <table border=1 cellspacing=0 cellpadding=2 width="100%" bgcolor="#E0E0E0">  <table border=1 cellspacing=0 cellpadding=2 width="100%" bgcolor="#E0E0E0">
82  {if ($ed_warnings)}<tr bgcolor="#C0C0FF"><td style="padding:10px"><tt><b>Some warnings were generated while processing your article. For more information, review the notes marked <font color="#FF0000">red</font> below.<br><br>Click &quot;<i>Preview</i>&quot; below again to ignore warnings and preview the article anyway.</b></tt></td></tr>{/if}  {if ($ed_warnings)}<tr bgcolor="#C0C0FF"><td style="padding:10px"><span class="note">Some warnings were generated while processing your article. For more information, review the notes marked <span class="warning">red</span> below.<br><br>Click &quot;<i>Preview</i>&quot; below again to ignore warnings and preview the article anyway.</span></td></tr>{/if}
83  <tr><td>  <tr><td>
84  <table border=0 cellspacing=0 cellpadding=3 width="100%">  <table border=0 cellspacing=0 cellpadding=3 width="100%">
85  <tr><td align=right><b>Title:</b></td><td colspan=3><input type=text onfocus="select();" class="small" size=30 name="ed_title" value="{$ed_title}" style="width:100%"></td></tr>  <tr><td align=right><b>Title:</b></td><td colspan=3><input type=text onfocus="select();" class="small" size=30 name="ed_title" value="{$ed_title}" style="width:100%"></td></tr>
# Line 104  function Underline(src, obj) { InsertTag Line 104  function Underline(src, obj) { InsertTag
104  <td><input type=radio class="small" name="ed_titlepic_pos" value=8 title="Lower right"{if ($ed_titlepic_pos == 8)} checked{/if}></td>  <td><input type=radio class="small" name="ed_titlepic_pos" value=8 title="Lower right"{if ($ed_titlepic_pos == 8)} checked{/if}></td>
105  </tr>  </tr>
106  </table></td>  </table></td>
107  <td colspan=2 align=right valign=bottom>{if ($ed_warning)}<font color="#FF0000"><tt><b><i>WARNING:</i>  <td colspan=2 align=right valign=bottom>{if ($ed_warning)}<span class="warning"><i>WARNING:</i>
108  {if ($ed_warning == 2)}You uploaded a title picture, but have not selected its disposition (the <i>Title picture position</i> field).{/if}  {if ($ed_warning == 2)}You uploaded a title picture, but have not selected its disposition (the <i>Title picture position</i> field).{/if}
109  <input type=hidden name="ed_title_force" value=1>{else}&nbsp;{/if}</td>  </span><input type=hidden name="ed_title_force" value=1>{else}&nbsp;{/if}</td>
110  </tr>  </tr>
111  <td align=right><b>URL for more info:</b></td><td colspan=3 align=left><input type=text onfocus="select();" class="small" size=30 name="ed_more" style="width:100%" value="{$ed_more}"></td>  <td align=right><b>URL for more info:</b></td><td colspan=3 align=left><input type=text onfocus="select();" class="small" size=30 name="ed_more" style="width:100%" value="{$ed_more}"></td>
112  <tr><td align=left colspan=4><br><br><b>Topic text:</b>  <tr><td align=left colspan=4><br><br><b>Topic text:</b>
# Line 135  function Underline(src, obj) { InsertTag Line 135  function Underline(src, obj) { InsertTag
135  <td><input type=radio class="small" name="ed_textpic_pos_{$i/ed_text.n}" value=8 title="Lower right"{if ($i/ed_text.pos == 8)} checked{/if}></td>  <td><input type=radio class="small" name="ed_textpic_pos_{$i/ed_text.n}" value=8 title="Lower right"{if ($i/ed_text.pos == 8)} checked{/if}></td>
136  </tr>  </tr>
137  </table></td>  </table></td>
138  <td colspan=2 align=right valign=bottom>{if ($i/ed_text.warning)}<font color="#FF0000"><tt><b><i>WARNING:</i>  <td colspan=2 align=right valign=bottom>{if ($i/ed_text.warning)}<span class="warning"><i>WARNING:</i>
139  {if ($i/ed_text.warning == 1)}This paragraph is empty (ie. it has neither text nor picture).{/if}  {if ($i/ed_text.warning == 1)}This paragraph is empty (ie. it has neither text nor picture).{/if}
140  {if ($i/ed_text.warning == 2)}You uploaded a picture for this paragraph, but have not selected its disposition (the <i>Picture position</i> field).{/if}  {if ($i/ed_text.warning == 2)}You uploaded a picture for this paragraph, but have not selected its disposition (the <i>Picture position</i> field).{/if}
141  </b></tt></font><input type=hidden name="ed_text_force_{$i/ed_text.n}" value=1>{else}&nbsp;{/if}</td>  </span><input type=hidden name="ed_text_force_{$i/ed_text.n}" value=1>{else}&nbsp;{/if}</td>
142  </tr>  </tr>
143  </table>  </table>
144  {if (%i.index% >= %i.loop% - 1)}<hr width="100%" size=2>{/if}  {if (%i.index% >= %i.loop% - 1)}<hr width="100%" size=2>{/if}
# Line 157  function Underline(src, obj) { InsertTag Line 157  function Underline(src, obj) { InsertTag
157  <input type=hidden name="ed_text_id_{%i.rownum%}" value="{$i/ed_records.id}">  <input type=hidden name="ed_text_id_{%i.rownum%}" value="{$i/ed_records.id}">
158  <input type=hidden name="ed_del_{%i.rownum%}" value="{$i/ed_records.val}">  <input type=hidden name="ed_del_{%i.rownum%}" value="{$i/ed_records.val}">
159  {/section}  {/section}
160    <input type=hidden name="ed_order" value="{$ed_order}">
161  </form>  </form>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26