myaccount layout issue fixed

This commit is contained in:
jamilrehman 2016-06-03 13:12:45 +05:00
parent 8de54d24dc
commit 7d0308b48d
3 changed files with 253 additions and 240 deletions

View file

@ -1,69 +1,79 @@
{if $control == 'full'}
<tr>
<td>
<input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}" />
</td>
<td valign="middle">
<label for="check_photo-{$photo.photo_id}">{get_photo details=$photo output='html' class='acc_usr_video_thumb img-responsive'}</label>
<br>{$photo.photo_title|truncate:100}<br>
<span class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$cbphoto->photo_links($photo,'view_item')}">view</a>
<a class="btn btn-primary btn-sm" href="{$baseurl}/edit_photo.php?photo={$photo.photo_id}">edit</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_item('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to delete this photo? This action will delete photo permanently."}','?mode=uploaded&amp;delete_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">delete</a>
{if !$userquery->isProfileItem($photo.photo_id,'p')}
<a class="btn btn-primary btn-sm" href="{$queryString}makeProfileItem={$photo.photo_id}&type=p">{lang code='make_profile_item'}</a>
{else}
<a class="btn btn-primary btn-sm" href="{$queryString}removeProfileItem={$photo.photo_id}&type=p">{lang code='remove_profile_item'}</a>
{/if}
</span>
</td>
<td>{$photo.date_added|date_format}</td>
<td>{$photo.views|number_format}</td>
<td>{$photo.total_comments|number_format}</td>
<td>{$photo.total_favorites|number_format}</td>
</tr>
<tr>
<td>
<input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}">
</td>
<td valign="middle">
<label for="check_photo-{$photo.photo_id}">
{get_photo details=$photo output='html' class='acc_usr_video_thumb img-responsive'}
</label>
<br>{$photo.photo_title|truncate:100}<br>
<span class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$cbphoto->photo_links($photo,'view_item')}">view</a>
<a class="btn btn-primary btn-sm" href="{$baseurl}/edit_photo.php?photo={$photo.photo_id}">edit</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_item('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to delete this photo? This action will delete photo permanently."}','?mode=uploaded&amp;delete_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">delete</a>
{if !$userquery->isProfileItem($photo.photo_id,'p')}
<a class="btn btn-primary btn-sm" href="{$queryString}makeProfileItem={$photo.photo_id}&type=p">{lang code='make_profile_item'}</a>
{else}
<a class="btn btn-primary btn-sm" href="{$queryString}removeProfileItem={$photo.photo_id}&type=p">{lang code='remove_profile_item'}</a>
{/if}
</span>
</td>
<td>{$photo.date_added|date_format}</td>
<td>{$photo.views|number_format}</td>
<td>{$photo.total_comments|number_format}</td>
<td>{$photo.total_favorites|number_format}</td>
</tr>
{/if}
{if $control == "partail"}
<tr>
<td><input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}" /></td>
<td valign="middle">
<label for="check_photo-{$photo.photo_id}">{get_photo details=$photo output='html' class='acc_usr_video_thumb img-responsive'}</label>
{$photo.photo_title|truncate:100}<br />
<span class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$cbphoto->photo_links($photo,'view_item')}">view</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to remove photo from favorites?"}','?mode={$mode}&amp;remove_fav_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a>
</span>
</td>
<td>{$photo.date_added|date_format}</td>
<td>{$photo.views|number_format}</td>
<td>{$photo.total_comments|number_format}</td>
<td>{$photo.total_favorites|number_format}</td>
</tr>
<tr>
<td>
<input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}">
</td>
<td valign="middle">
<label for="check_photo-{$photo.photo_id}">
{get_photo details=$photo output='html' class='acc_usr_video_thumb img-responsive'}
</label>
{$photo.photo_title|truncate:100}<br>
<span class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$cbphoto->photo_links($photo,'view_item')}">view</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to remove photo from favorites?"}','?mode={$mode}&amp;remove_fav_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a>
</span>
</td>
<td>{$photo.date_added|date_format}</td>
<td>{$photo.views|number_format}</td>
<td>{$photo.total_comments|number_format}</td>
<td>{$photo.total_favorites|number_format}</td>
</tr>
{/if}
{if $control == 'orphan'}
<tr>
<td><input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}" /></td>
<tr>
<td>
<input type="checkbox" name="check_photo[]" id="check_photo-{$photo.photo_id}" value="{$photo.photo_id}">
</td>
<td valign="middle">
<label for="check_photo-{$photo.photo_id}">{get_photo details=$photo output='html' class='acc_usr_video_thumb img-responsive'}</label>
{$photo.photo_title|truncate:100}<br />
<span class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$baseurl}/edit_photo.php?photo={$photo.photo_id}">edit</a>
<a class="btn btn-primary btn-sm" href="{get_photo size='o' details=$photo}">Direct Link</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to delete this photo? This action will delete photo permanently."}','?mode={$mode}&amp;delete_orphan_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a>
</span>
</td>
<td>{$photo.date_added|date_format}</td>
<td>{$photo.views|number_format}</td>
<td>{$photo.total_comments|number_format}</td>
<td>{$photo.total_favorites|number_format}</td>
</tr>
<td valign="middle">
<label for="check_photo-{$photo.photo_id}">
{get_photo details=$photo output='html' class='acc_usr_video_thumb img-responsive'}
</label>
{$photo.photo_title|truncate:100}<br>
<span class="btn-group show">
<a class="btn btn-primary btn-sm" href="{$baseurl}/edit_photo.php?photo={$photo.photo_id}">edit</a>
<a class="btn btn-primary btn-sm" href="{get_photo size='o' details=$photo}">Direct Link</a>
<a class="btn btn-primary btn-sm" href="javascript:void(0)" onmousedown="delete_video('delete_icon_a','{$photo.photo_id}','{lang code="Are you sure you want to delete this photo? This action will delete photo permanently."}','?mode={$mode}&amp;delete_orphan_photo={$photo.photo_id}')" id="delete_icon_a-{$photo.photo_id}">{lang code='delete'}</a>
</span>
</td>
<td>{$photo.date_added|date_format}</td>
<td>{$photo.views|number_format}</td>
<td>{$photo.total_comments|number_format}</td>
<td>{$photo.total_favorites|number_format}</td>
</tr>
{/if}

View file

@ -1,6 +1,6 @@
{$myAccountLinks = $userquery->my_account_links()}
{$leftMenuLinks = array_slice($myAccountLinks, 7)}
<div class="container marginBottom">
<div class="container manage-page marginBottom">
<div class="marginBottom">
<div class="row cb-box">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 hidden-xs">

View file

@ -1,194 +1,197 @@
{$myAccountLinks = $userquery->my_account_links()}
<div class="container marginBottom">
<div class="container manage-page marginBottom">
<div class="row cb-box">
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 hidden-xs">
{include file="$style_dir/blocks/manage/userMenuLeft.html"}
</div>
<div class="mainContent col-md-9 col-sm-9 col-xs-12">
{if $mode == 'uploaded'}
<h2>{lang code="manage_photos"}</h2>
<form clasws="form-inline" id="form1" name="form1" method="get" action="">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="col-md-11">
<div class="form-group">
<input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</div>
</div>
</form>
<form name="photos_manager" method="post">
<div class="marginBottom">
<img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="delete_photos" id="delete_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div>
<br>
<div class="account_table table-responsive">
<table class="table table-bordered table-striped">
<tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td>
<td>{lang code='title'}</td>
<td width="100">{lang code='date_added'}</td>
<td width="100">{lang code='views'}</td>
<td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td>
</tr>
{section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='full'}
{sectionelse}
<tr>
<td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='you_dont_have_photos'}</em></strong></div>
</td>
</tr>
{/section}
</table>
</div>
{include file="$style_dir/blocks/pagination.html"}
</form>
{/if}
{if $mode == "favorite"}
<h2>{lang code="manage_favorite_photos"}</h2>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form id="form1" name="form1" method="get" action="">
<div class="col-md-11">
<div class="form-group">
<input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 hidden-xs">
{include file="$style_dir/blocks/manage/userMenuLeft.html"}
</div>
<div class="mainContent col-md-9 col-sm-9 col-xs-12">
{if $mode == 'uploaded'}
<h2>{lang code="manage_photos"}</h2>
<form clasws="form-inline" id="form1" name="form1" method="get" action="">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="col-md-11">
<div class="form-group">
<input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</div>
</div>
</form>
<form name="photos_manager" method="post">
<div class="marginBottom">
<img src="{$imageurl}/dot.gif" class="arrow_pointing">
<input type="submit" name="delete_photos" id="delete_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm">
</div>
<br>
<div class="account_table table-responsive">
<table class="table table-bordered table-striped">
<tr>
<td width="25">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);">
</td>
<td>{lang code='title'}</td>
<td width="100">{lang code='date_added'}</td>
<td width="100">{lang code='views'}</td>
<td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td>
</tr>
{section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='full'}
{sectionelse}
<tr>
<td colspan="5">
<div align="center" style="padding:5px">
<strong><em>{lang code='you_dont_have_photos'}</em></strong>
</div>
</td>
</tr>
{/section}
</table>
</div>
{include file="$style_dir/blocks/pagination.html"}
</form>
{/if}
{if $mode == "favorite"}
<h2>{lang code="manage_favorite_photos"}</h2>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form id="form1" name="form1" method="get" action="">
<div class="col-md-11">
<div class="form-group">
<input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</form>
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</form>
</div>
</div>
<form name="photos_manager" method="post">
<div>
<img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="remove_fav_photos" id="remove_fav_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div>
<br>
<form name="photos_manager" method="post">
<div>
<img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="remove_fav_photos" id="remove_fav_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div>
<br>
<table class="table table-bordered table-striped">
<tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td>
<td>{lang code='title'}</td>
<td width="100">{lang code='date_added'}</td>
<td width="100">{lang code='views'}</td>
<td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td>
</tr>
{section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='partail'}
{sectionelse}
<tr>
<td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='you_dont_have_photos'}</em></strong></div>
</td>
</tr>
{/section}
</table>
{include file="$style_dir/blocks/pagination.html"}
</form>
{/if}
{if $mode == 'orphan'}
<h2>{lang code="manage_my_album"}</h2>
<div align="right">
{lang code="make_my_album"}
<label>
<input type="radio" name="my_album_privacy" value="public" {if $user.album_privacy =='public'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=public'"/>{lang code="public"}
</label>
<label>
<input type="radio" name="my_album_privacy" value="private" {if $user.album_privacy =='private'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=private'"/> {lang code="private"}
</label>
<table class="table table-bordered table-striped">
<tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td>
<td>{lang code='title'}</td>
<td width="100">{lang code='date_added'}</td>
<td width="100">{lang code='views'}</td>
<td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td>
</tr>
{section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='partail'}
{sectionelse}
<tr>
<td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='you_dont_have_photos'}</em></strong></div>
</td>
</tr>
{/section}
</table>
{include file="$style_dir/blocks/pagination.html"}
</form>
{/if}
{*
{if $mode == 'orphan'}
<h2>{lang code="manage_my_album"}</h2>
<div align="right">
{lang code="make_my_album"}
<label>
<input type="radio" name="my_album_privacy" value="public" {if $user.album_privacy =='public'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=public'"/>{lang code="public"}
</label>
<label>
<input type="radio" name="my_album_privacy" value="private" {if $user.album_privacy =='private'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=private'"/> {lang code="private"}
</label>
<label>
<input type="radio" name="my_album_privacy" value="friends" {if $user.album_privacy =='friends'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=friends'"/>{lang code="for_friends"}
</label>
</div>
<p>{lang code="long_txt"}</p>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form id="form1" name="form1" method="get" action="">
<div class="col-md-11">
<div class="form-group">
<input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</div>
</div>
<label>
<input type="radio" name="my_album_privacy" value="friends" {if $user.album_privacy =='friends'} checked="checked" {/if} onclick="window.location = '{$albumPrivacyUrl}album_privacy=friends'"/>{lang code="for_friends"}
</label>
</div>
<p>{lang code="long_txt"}</p>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<form id="form1" name="form1" method="get" action="">
<div class="col-md-11">
<div class="form-group">
<input name="query" type="text" class="form-control" id="query" value="{$smarty.get.query|form_val}" />
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</form>
</div>
</div>
<div class="col-md-1">
<div class="form-group text-right">
<input name="input" type="submit" class="btn btn-primary" value="{lang code='search'}"/>
<input name="mode" value="{$mode}" type="hidden" />
</div>
</div>
</form>
</div>
</div>
<form name="photos_manager" method="post">
<div>
<img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="delete_orphan_photos" id="delete_orphan_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div>
<br>
<table class="table table-bordered table-striped">
<tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td>
<td>{lang code='title'}</td>
<td width="100">{lang code='date_added'}</td>
<td width="100">{lang code='views'}</td>
<td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td>
</tr>
{section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='orphan'}
{sectionelse}
<tr>
<td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='you_dont_have_orphan_photos'}</em></strong></div>
</td>
</tr>
{/section}
</table>
{include file="$style_dir/blocks/pagination.html"}
</form>
{/if}
</div>
</div>
<form name="photos_manager" method="post">
<div>
<img src="{$imageurl}/dot.gif" class="arrow_pointing" />
<input type="submit" name="delete_orphan_photos" id="delete_orphan_photos" value="{lang code='delete'}" class="btn btn-primary btn-sm" />
</div>
<br>
<table class="table table-bordered table-striped">
<tr>
<td width="25"><input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td>
<td>{lang code='title'}</td>
<td width="100">{lang code='date_added'}</td>
<td width="100">{lang code='views'}</td>
<td width="100">{lang code='comments'}</td>
<td width="100" class="last_td">{lang code='favorites'}</td>
</tr>
{section name=p_list loop=$photos}
{include file="$style_dir/blocks/manage/account_photo.html" photo=$photos[p_list] control='orphan'}
{sectionelse}
<tr>
<td colspan="5">
<div align="center" style="padding:5px"><strong><em>{lang code='you_dont_have_orphan_photos'}</em></strong></div>
</td>
</tr>
{/section}
</table>
{include file="$style_dir/blocks/pagination.html"}
</form>
{/if}
*}
</div>
</div>
</div>