This commit is contained in:
Fawaz 2010-10-27 08:55:33 +00:00
parent 5541b6bdc6
commit 28e5b20030
2 changed files with 113 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<div class="account_vid_list" style="background-color:#{cycle values='ffffff,EFF5F8'}; padding:4px 0px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25"><input type="checkbox" name="check_col[]" id="check_col-{$collection.collection_id}" value="{$collection.collection_id}" />
<label for="checkbox"></label></td>
<td valign="middle">
{$collection.collection_name}
<div class="clear"></div>
<div style="font-size:10px;"><a href="{$cbcollection->collection_links($collection)}">{lang code="view"}</a> - <a href="?mode=edit_collection&amp;cid={$collection.collection_id}">{lang code="edit"}</a> - <a href="javascript:void(0)">{lang code="delete"}</a></div>
</td>
<td width="100">{$collection.date_added|date_format}</td>
<td width="100">{$collection.views|number_format}</td>
<td width="100">{$collection.total_objects|number_format}</td>
<td width="100">{$collection.type}</td>
<td width="100" class="last_td">{$collection.active}</td>
</tr>
</table>
</div>

View file

@ -0,0 +1,94 @@
<div>
{include file="$style_dir/blocks/manage/account_left.html"}
<div class="account_box">
{include file="$style_dir/blocks/manage/account_head.html" user=$user}
<form action="" method="post" class="upload_form" name="form1" enctype="multipart/form-data">
{if $mode == "manage" || $mode == ""}
<h2>{lang code='manage_collections'}</h2>
<div class="account_table">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td>
<td>{lang code='collection_name'}</td>
<td width="100">{lang code='date_added'}</td>
<td width="100">{lang code='views'}</td>
<td width="100">{lang code='total_items'}</td>
<td width="100">{lang code='type'}</td>
<td width="100" class="last_td">{lang code='active'}</td>
</tr>
</table>
</div>
{section loop=$usr_collects name=clist}
{include file="$style_dir/blocks/manage/account_collections.html" collection=$usr_collects[clist]}
{/section}
{/if}
{if $mode == "edit_collection"}
<h2>{lang code='edit'} {$c.collection_name}</h2>
<input type="hidden" value="{$c.collection_id}" name="collection_id" id="collection_id" />
<div class="upload_info">
<div class="account_form">
{foreach from=$fields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}
{ANCHOR place=$field.anchor_before}
{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
{foreach from=$other_fields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}
{ANCHOR place=$field.anchor_before}
{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
<input type="submit" name="update_collection" class="cb_button_2" value="{lang code='update_collection'}">
</div> <!-- account_form -->
</div> <!-- upload_info -->
{/if}
{if $mode == "add_new"}
<h2>{lang code='add_new_collection'}</h2>
<div class="upload_info">
<div class="account_form">
{foreach from=$fields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}
{ANCHOR place=$field.anchor_before}
{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
{foreach from=$other_fields item=field}
<div class="field">
<label for="{$field.id}" class="label">{$field.title}</label>
{if $field.hint_1}<div class="hint">{$field.hint_1}</div><br>{/if}
{ANCHOR place=$field.anchor_before}
{$formObj->createField($field)}
{if $field.hint_2}<br>
<div class="hint">{$field.hint_2}</div>{/if}
</div>
{/foreach}
<input type="submit" name="add_collection" class="cb_button_2" value="{lang code='add_new_collection'}">
</div>
</div>
{/if}
</form>
</div> <!-- account_box end -->
</div>