Subversion Repositories instagram

[/] [design/] [admin2/] [templates/] [ig/] [connected_users.tpl] - Rev 2

Compare with Previous | Blame | View Log

<form action={"/ig/connect_user"|ezurl} method="post">

<div class="context-block content-bookmark">
{* DESIGN: Header START *}<div class="box-header"><div class="box-ml">
<h1 class="context-title">{"Connected users"|i18n('extension/instagram')}</h1>

{* DESIGN: Mainline *}<div class="header-mainline"></div>

{* DESIGN: Header END *}</div></div>
<div class="controlbar">
{* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml">
        <div class="block">
    <input class="button" type="submit" name="TranslateButton" value="{"Connect now!"|i18n('extension/instagram')}" title="{"Authorize this app with your IG Account"|i18n('extension/instagram')}" />
        </div>
{* DESIGN: Control bar END *}</div></div>
</div>

{* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">

{if $connected_users}
        <table class="list" cellspacing="0">
        <tr>
            <th class="tight"><img src={'toggle-button-16x16.gif'|ezimage} width="16" height="16" alt="{'Invert selection.'|i18n( 'design/admin/content/bookmark' )}" onclick="ezjs_toggleCheckboxes( document.bookmarkaction, 'DeleteIDArray[]' ); return false;" title="{'Invert selection.'|i18n( 'design/admin/content/bookmark' )}" /></th>
            <th class="tight"></th>
            <th class="tight">{'IG ID'|i18n( 'extension/instagram' )}</th>
            <th>{'IG Username'|i18n( 'extension/instagram' )}</th>
            <th>{'IG Full Name'|i18n( 'extension/instagram' )}</th>
            <th>{'Photos'|i18n( 'extension/instagram' )}</th>
            <th>{'Synchronised Photos'|i18n( 'extension/instagram' )}</th>
            <th>{'Followed by'|i18n( 'extension/instagram' )}</th>
            <th>{'Follows'|i18n( 'extension/instagram' )}</th>
        </tr>
        {def $userinfo=''
                 $local_photos_count=0}
                 
        {foreach $connected_users as $item sequence array( bglight, bgdark ) as $sequence}
       
                {set $userinfo=fetch('ig','user', hash('user_id', $item.ig_id) )
                         $local_photos_count=fetch('ig','local_photos_count', hash('user_id', $item.ig_id, 'as_object', false() ) )}
       
        <tr class="{$sequence}">
            <td><input type="checkbox" name="DeleteIDArray[]" value="{$item.id}" title="{'Select user for removal in local database'|i18n( 'extension/tf' )}" /></td>
            <td>{if $item.ig_profile_picture}<img src="{$item.ig_profile_picture}" alt="{$item.ig_username|wash()}" width="50" height="50" />{/if}</td>
            <td>{$item.ig_id|wash()}</td>
            <td>
                {if $local_photos_count|gt(0)}
                        <a href={concat("/ig/feed/",$item.ig_id)|ezurl}>{if $item.ig_username}{$item.ig_username|wash()}{/if}</a>
                {else}
                        {if $item.ig_username}{$item.ig_username|wash()}{/if}
                {/if}
            </td>
            <td>{if $item.ig_full_name}{$item.ig_full_name|wash()}{/if}</td>
            <td>
                {$userinfo.counts_media}
            </td>
            <td>
                {if $local_photos_count|gt(0)}
                        {$local_photos_count}
                {else}
                        {"Photos will be imported via cronjob"|i18n('extension/instagram')}
                {/if}
            </td>
            <td>{$userinfo.counts_followed_by}</td>
            <td>{$userinfo.counts_follows}</td>
        </tr>
        {/foreach}
       
        </table>

{else}
    <div class="block">
    <p>{"No users are connected at the moment!"|i18n('extension/instagram')}</p>
    </div>
{/if}



{* DESIGN: Content END *}</div></div></div>

<div class="controlbar">
</div>

</div>

</form>

{undef}
 

Compare with Previous | Blame | View Log