vacancy.tpl
1.66 KB
<input type="button" class="submit_green" value="Ñîçäàòü" onClick="document.location='{$smarty.const.URL}admin.php?action={$rules_info_one.action}&parentID={$smarty.get.parentID}&save'">
<br>
{if count($newsAllData.data)}
<table cellpadding="2" cellspacing="1" width="100%">
{section name=i loop=$newsAllData.data}
<tr><td>
<div style="border-bottom:1px solid #878787;padding-bottom:2px;"><b>{$newsAllData.data[i].date|date_format:"%d-%m-%Y"}</b></div>
</td></tr>
<tr height="70" valign="top">
<td>
{if $newsAllData.data[i].pic}<img id="imgBorder" src="{$smarty.const.URL}uploaded/pic/news/{$newsAllData.data[i].pic}" border="0" align="left">{/if}
{if $newsAllData.data[i].parent_id eq 0}
<a href="{$smarty.const.URL}admin.php?action={$rules_info_one.action}&parentID={$newsAllData.data[i].id}"><font color="#C32A2F"><b>{$newsAllData.data[i].title|truncate:200|stripslashes|escape:"html"}</b></font></a>
{else}
<b>{$newsAllData.data[i].title|truncate:200|stripslashes|escape:"html"}</b>
{/if}
<br>{$newsAllData.data[i].text|strip_tags|truncate:500|stripslashes}</a>
</tr>
<tr><td>
<input type="button" class="submit_orange" value="Ïðàâèòü" onClick="document.location='{$smarty.const.URL}admin.php?action={$rules_info_one.action}&save&parentID={$smarty.get.parentID}&editID={$newsAllData.data[i].id}';">
<input type="button" class="submit_red" value="Óäàëèòü" onClick="del('{$smarty.const.URL}admin.php?action={$rules_info_one.action}&parentID={$smarty.get.parentID}&deleteID={$newsAllData.data[i].id}');">
</td></tr>
{/section}
</table>
<br>
{if $newsAllData.links}<div class="pager">Ñòðàíèöû: {$newsAllData.links}</div>{/if}
{/if}