Turinio valdymo sistema

Prisijungimas partneriams
Jūsų slaptažodis

Dirbame su:










form

     <div>{$content}</div>
{$submit_to}
<table width="100%" cellpadding="0" cellspacing="0">
{foreach from=$form item="el"}
{if $el.type!="divider" and $el.type!="empty"}
<tr>
<td>{$el.name}</td>
<td>{$el.html}</td>
</tr>
{elseif $el.type == "empty"}
<tr>
<td><img src="client/img/spacer.gif" width="1" height="1" alt="" border="0"></td>
</tr>
{elseif $el.type == "divider"}
<tr>
<td><hr></td>
</tr>
{/if}
{/foreach}
<tr>
<td align="right">
<input type="submit" value="Send">
<input type="reset" value="Reset">
</td>
</tr>
</table>
</form>
<div>{$footer_text}</div>
           
           
 <style>
.txtrequired { background-color:#FFFFD2; }
.txterror { background-color:#FFB9B9; }
</style>
<p> {$content} </p>
{$submit_to}
<table width="100%" cellpadding="3px" cellspacing="0" border="0">
{foreach from=$form item="el" name=foo}
{assign var="field" value=$el.field_name}
{if $el.type!="divider" and $el.type!="empty" and $el.type!="text_label" and $el.type!="checkbox" and $el.type!="radio" and $el.type!="text" and $laukas.type=="url" and $laukas.type=="email" and $laukas.type!="textarea" and $laukas.type!="file" and $laukas.type!="select" }
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td>{$el.html}</td>
</tr>
{elseif $el.type == "divider"}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
{elseif $el.type == "text_label"}
<tr>
<td>{$el.name}</td>
<td>{$el.param}</td>
</tr>
{elseif $el.type == "select"}
{if $smarty.post.$field=="" and $error[1] and $el.required}
<tr>
<td></td>
<td><span style="color:#FF0000; font-size:9px;">{print lt="Reikia užpildyti" en="Field are required" ru="требуются"}</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td>{$el.html}</td>
</tr>
{elseif $el.type == "checkbox"}
{if $smarty.post.$field=="" and $error[1] and $el.required}
<tr>
<td></td>
<td><span style="color:#FF0000; font-size:9px;">{print lt="Reikia užpildyti" en="Field are required" ru="требуются"}</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td>{$el.html}</td>
</tr>
{elseif $el.type == "file"}
{if $smarty.post.$field=="" and $error[1] and $el.required}
<tr>
<td></td>
<td><span style="color:#FF0000; font-size:9px;">{print lt="Reikia užpildyti" en="Field are required" ru="требуются"}</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td><input name="{$el.field_name}" type="file" class="txt{if $el.required}required{/if}" style="width:190px"></td>
</tr>
{elseif $el.type == "textarea"}
{if $smarty.post.$field=="" and $error[1] and $el.required}
<tr>
<td></td>
<td><span style="color:#FF0000; font-size:9px;">{print lt="Reikia užpildyti" en="Field are required" ru="требуются"}</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td><textarea name="{$el.field_name}" rows="3" class="txt{if $smarty.post.$field=="" and $error[1] and $el.required}error{elseif $el.required}required{/if}" onClick="this.className='{if $el.required}txtrequired{else}txt{/if}'" style="width:190px">
{$smarty.post.$field}
</textarea></td>
</tr>
{elseif $el.type == "email"}
{if $error[3]}
<tr>
<td>&nbsp;</td>
<td align="left"><span style="color:#FF0000">{print lt="Neteisingai nurodytas el. pašto adresas" en="Wrong email" ru="Неправильно указал адрес электронной почты"}!</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td><input name="{$el.field_name}" value="{$smarty.post.$field}" type="email" class="txt{if $smarty.post.$field=="" and $error[3] and $el.required}error{elseif $el.required}required{/if}" onClick="this.className='{if $el.required}txtrequired{else}txt{/if}'" style="width:190px"></td>
</tr>
{elseif $el.type == "url"}
{if $error[2]}
<tr>
<td>&nbsp;</td>
<td align="left"><span style="color:#FF0000">{print lt="Neteisingai ivesta nuoroda!" en="Wrong link!" ru="Неправильнa ссылка"}</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td><input name="{$el.field_name}" value="{$smarty.post.$field}" type="url" class="txttxt{if $smarty.post.$field=="" and $error[2] and $el.required}error{elseif $el.required}required{/if}" onClick="this.className='{if $el.required}txtrequired{else}txt{/if}'" style="width:190px"></td>
</tr>
{elseif $el.type == "text"}
{if $smarty.post.$field=="" and $error[1] and $el.required}
<tr>
<td></td>
<td><span style="color:#FF0000; font-size:9px;">{print lt="Reikia užpildyti" en="Field are required" ru="требуются"}</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td><input name="{$el.field_name}" value="{$smarty.post.$field}" type="text" class="txt{if $smarty.post.$field=="" and $error[1] and $el.required}error{elseif $el.required}required{/if}" {if $error[1]}onClick="this.className='{if $el.required}txtrequired{else}txt{/if}'"{/if} style="width:190px"></td>
</tr>
{elseif $el.type == "radio"}
{if $smarty.post.$field=="" and $error[1] and $el.required}
<tr>
<td></td>
<td><span style="color:#FF0000; font-size:9px;">{print lt="Reikia užpildyti" en="Field are required" ru="требуются"}</span></td>
</tr>
{/if}
<tr>
<td>{$el.name}{if $el.required}<span style="color:#FF0000">*</span>{/if}</td>
<td>{$el.html}</td>
</tr>
{/if}
{/foreach}
<tr>
<td>&nbsp;</td>
<div><font style=" color:#FF0000">*</font>&nbsp;-&nbsp;{print lt="Būtina užpildyti." en="Are required."}</div>
</td>
</tr>
<tr>
<td></td>
<td align="right"><div class="balsbut">
<input type="reset" name="reset" value="Išvalyti" class="loginbut1_red">
</div>
<div class="balsbut">
<input type="submit" name="submit" value="Siųsti" class="loginbut1_red">
</div></td>
</tr>
</table>
</form>
<p> {$footer_text} </p>