Location: PHPKode > projects > PowerMovieList > powermovielist-0_14_beta/templates/linklist.tpl
{if $CFG.LinkListType == 1}{*PML_LinkListType_Select*}
{* Selectbox with global LinkList (the same for every user) *}
    <select name="SetActiveList" size="11" onChange="window.location=this.options[this.selectedIndex].value;">
    {foreach key=k item=i name=prop from=$LinkListData}
        <option value="{if $i.Type == "User"}index.php{$CFG.GlobalArgWOActive}Active={$i.name}{else}{$i.Url}{/if}"{if $i.name == $ActiveList.name} selected{/if}>{$i.Text}</option>
    {/foreach}
    </select>
{/if}


{cycle values="row2,row1" print=false advance=false}
{if $CFG.LinkListType == 2 || $CFG.LinkListType == 4}{* PML_LinkListType_Text || PML_LinkListType_FavText}
{* textbox for entering the listname (big lists...) *}
    <form method="get" action="list.php{$CFG.GlobalArgWOActive}">
    <p class="row2" style="width: 100%; margin: 0px; padding: 3px;"><strong>{$lang.strGoToList}:</strong> &nbsp;[ <a href="#" onclick="window.open('showlinklist.php{$CFG.GlobalArg}', 'LinkList', 'width=200, height=300, scrollbars=yes').focus">all lists</a> ]</p>
    <p style="width: 147px; margin: 0px; padding-bottom: 10px;">
        <input type="text" name="Active" style="width: 120px;" value="{$ActiveList.name}">
        <input type="submit" value="&gt;" style="width: 20px; border: 1px solid white; background-color: white; padding: 0px; margin: 0px;">
    </p>    
{/if}

{NoCache}
{if $ActiveUser.name != "Guest" && ($CFG.LinkListType == 3 || $CFG.LinkListType == 4)}{* PML_LinkListType_Fav || PML_LinkListType_FavText*}
{* favorite lists for every user *}
    <div style="width: 100%; overflow: auto; height: 120px;">
    <table cellpadding="3" cellspacing="1" class="tblback" width="100%">
    <tr class="top">
        <td>{$lang.strYourFavLists}</td>
    </tr>
        {cycle values="row1,row2" print=false advance=false}
        {foreach key=k item=i from=$FavLists}
            <tr class="{cycle advance=false}" onmouseover="this.className='{cycle advance=false} rowpoint'" onmouseout="this.className='{cycle}'">
                <td style="cursor: pointer;" onclick="location.href='list.php{$CFG.GlobalArgWOActive}Active={$k}'">ยป <a href="list.php{$CFG.GlobalArgWOActive}Active={$k}">{$i}</a></td>
            </tr>                
        {/foreach}
    </table>
    {assign var="ga" value=$CFG.GlobalArg}
    {assign var="ManageFavLink" value="editfav.php$ga&action="}
    <p style="text-align: center; margin: 0px; padding-top: 3px;">[ <a href="editconfig.php{$CFG.GlobalArg}ShowPage={$ManageFavLink|escape:"url"}">{$lang.strManagefavorites}</a> ]</p>
    {if ! $ActiveListInFav} {* dsplay the link only when not allready in favs *}
        {assign var="AddFavLink" value="editfav.php$ga&action=addfav"}
        <p style="text-align: center; margin: 0px; padding-top: 3px;">[ <a href="editconfig.php{$CFG.GlobalArg}ShowPage={$AddFavLink|escape:"url"}">{$lang.strAddActiveList}</a> ]</p>
    {/if}
    </div>        
{/if}
{if $ActiveUser.name == "Guest" && ($CFG.LinkListType == 3 || $CFG.LinkListType == 4)}{* PML_LinkListType_Fav || PML_LinkListType_FavText*}
    <table cellpadding="3" cellspacing="1" class="tblback" width="100%">
    <tr class="top">
        <td>{$lang.strYourFavLists}</td>
    </tr>
    <tr class="row1">
        <td>not avaliable for Guests</td>
    </tr>
    </table>
{/if}
{/NoCache}

{if $CFG.LinkListType == 2 || $CFG.LinkListType == 4}{*PML_LinkListType_Text || PML_LinkListType_FavText*}
    </form>
{/if}
Return current item: PowerMovieList