%PDF- %PDF-
Direktori : /home/nailstv/public_html/ua.nails.tv/smarty/templates_old/admin/ |
Current File : /home/nailstv/public_html/ua.nails.tv/smarty/templates_old/admin/kapcs_termekek.tpl.html |
{* Smarty *} <h1>Kapcsolódó termékek</h1> {if isset($smarty.get.add)} {if !empty($error)} <p class="error">{$error}</p> {/if} <form method="post" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data"> <fieldset> <input type="hidden" name="id" value="{$edit.id}" /> {if isset($smarty.get.tipus)} <input type="hidden" name="tipus" value="{$smarty.get.tipus}" /> {/if} <input type="hidden" name="video_id" value="{if empty($edit.video_id)}{$smarty.session.video_id}{else}{$edit.video_id}{/if}" /> <hr /> <p> <label for="nev">Megnevezés</label> <input id="nev" name="nev" type="text" class="text" value="{$edit.nev|stripslashes}" maxlength="250" /> </p> <br /> <h3>Egyedi hivatkozás:</h3> <p> <label for="link">Link</label> <input id="link" name="link" type="text" class="text" value="{$edit.link}" maxlength="250" /> </p> <p> <label for="kep_link">Kép</label> <input id="kep_link" name="kep_link" type="text" class="text" value="{$edit.kep_link}" maxlength="250" /> </p> <hr /> <h2>VAGY*</h2> <span>* A kettő közül csak 1 választható! [ link vagy adott termék/kategória ]</span> <span><br />* Figyelem! Terméket és kategóriát egyszerre nem választhat!</span> <hr /> <h3>Termék kijelölése:</h3> <p> <label for="ext_id_cat">Kategória</label> <br /> <select name="ext_id_cat" id="ext_id_cat" class="text" title="== Kategória kiválasztása =="> <option value="">== Kategória kiválasztása ==</option> {foreach from=$categories key=key item=item name=prod} <option value="{$key}" {if $edit.ext_id_cat == $key} selected{/if}>{$item}</option> {/foreach} </select> </p> <p> <label for="ext_id">Termék</label> <br /> <select name="ext_id" id="ext_id" class="text" title="== Termék kiválasztása =="> <option value="">== Termék kiválasztása ==</option> {foreach from=$products key=key item=item name=prod} <option value="{$key}" {if $edit.ext_id == $key} selected{/if}>{$item}</option> {/foreach} </select> </p> </fieldset> <fieldset class="submit"> <input id="submit" type="submit" value="ok" /> <input id="cancel" type="button" value="mégse" onclick="window.location = '?id={if empty($edit.video_id)}{$smarty.session.video_id}{else}{$edit.video_id}{/if}{if $smarty.get.tipus == 'akademia'}&tipus=akademia{/if}';" /> </fieldset> </form> <script> {literal} $(document).ready(function () { $("#ext_id,#ext_id_cat").searchable({ maxListSize: 100, // if list size are less than maxListSize, show them all maxMultiMatch: 100, // how many matching entries should be displayed exactMatch: false, // Exact matching on search wildcards: true, // Support for wildcard characters (*, ?) ignoreCase: true, // Ignore case sensitivity latency: 200, // how many millis to wait until starting search warnMultiMatch: 'Első {0} találat ...', // string to append to a list of entries cut short by maxMultiMatch warnNoMatch: 'nincs találat ...', // string to show in the list when no entries match zIndex: 'auto' // zIndex for elements generated by this plugin }); }); {/literal} </script> {else} <p> <a href="{$smarty.server.PHP_SELF}?add{if isset($smarty.get.tipus)}&tipus={$smarty.get.tipus}{/if}">új felvitele</a> | <a href="/admin/video.php">vissza</a> </p> {if count($termekek)} <form id="{$table}" method="post" action="{$smarty.server.PHP_SELF}"> <table cellspacing="0" cellpadding="5" width="100%" id="sortable" summary="Tartalmi linkek listája"> <col width="50" /> <col width="250" /> <col /> <col width="70" /> <col width="50" /> <col width="30" /> <tr> <th>Aktív</th> <th><strong>Név</strong></th> <th>Link</th> <th></th> <th></th> <th> <input type="checkbox" id="{$table}_checkall" onclick="javascript:changeAll('{$table}');" title="Mind kijelölés / Kijelölés törlése" /> </th> </tr> {foreach from=$termekek item=item name=termekek} <tr {if $smarty.foreach.termekek.iteration % 2 == 1} class="paratlan"{/if} id="{$table}_{$item.id}"> <td> <input type="checkbox" name="aktiv[{$item.id}]" title="aktív" onclick="ajax('_setaktiv.php', 'table=termekek&id={$item.id}&aktiv='+this.checked);"{if $item.aktiv == 't'} checked="checked"{/if} /> </td> <td>{$item.nev|stripslashes}</td> <td><a href="{$item.link}" target="_blank">{$item.link|stripslashes|truncate:50}</a></td> <td><a href="{$smarty.server.PHP_SELF}?add&edit={$item.id}" title="módosítás">módosítás</a></td> <td> <a href="{$smarty.server.PHP_SELF}?delete={$item.id}" title="törlés" onclick="return window.confirm('Biztos törli?');">törlés</a> </td> <td><input type="checkbox" name="torol[{$item.id}]" /></td> </tr> {/foreach} <tr class="nodrop nodrag"> <td colspan="6" class="right"> <input type="submit" value="kijelöltek törlése" onclick="return window.confirm('Biztos törli az összes kijelölt elemet?');" /> </td> </tr> </table> </form> {else} <p>Nincs adat.</p> {/if} {/if}