Modified:Added reply option in received message

This commit is contained in:
Awais-cb 2017-05-12 15:15:00 +05:00
parent 3bd7a274c5
commit 98567268ff

View file

@ -5,57 +5,59 @@
<input type="submit" name="delete_pm" id="delete_fav_videos" value="{lang code='delete'}" class="btn btn-primary" /> <input type="submit" name="delete_pm" id="delete_fav_videos" value="{lang code='delete'}" class="btn btn-primary" />
</div> </div>
<div id="messages_container" class="account_table marginTop"> <div id="messages_container" class="account_table marginTop">
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<tr> <tr>
<td width="25"> <td width="25">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/> <input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td> </td>
{if $show_from} {if $show_from}
<td width="100">{lang code='from'}</td> <td width="100">{lang code='from'}</td>
{/if} {/if}
{if $show_to} {if $show_to}
<td width="100">{lang code='to'}</td> <td width="100">{lang code='to'}</td>
{/if} {/if}
<td>{lang code='subject'}</td> <td>{lang code='subject'}</td>
<td width="100">{lang code='date_sent'}</td> <td width="100">{lang code='date_sent'}</td>
<td>{lang code='date_added'}</td> <td>{lang code='date_added'}</td>
</tr> <td>{lang code='Reply'}</td>
{section name=msg loop=$user_msgs} </tr>
<tr id="message-{$user_msgs[msg].message_id}"> {section name=msg loop=$user_msgs}
<td> <tr id="message-{$user_msgs[msg].message_id}">
<input type="checkbox" name="msg_id[]" id="msg_id" value="{$user_msgs[msg].message_id}" /> <td>
</td> <input type="checkbox" name="msg_id[]" id="msg_id" value="{$user_msgs[msg].message_id}" />
{if $show_from} </td>
<td> {if $show_from}
<a href="?mode={$mode}&mid={$user_msgs[msg].message_id}">{$user_msgs[msg].message_from_user}</a> <td>
</td> <a href="?mode={$mode}&mid={$user_msgs[msg].message_id}">{$user_msgs[msg].message_from_user}</a>
{/if} </td>
{if $show_to} {/if}
<td> {if $show_to}
<a href="?mode={$mode}&mid={$user_msgs[msg].message_id}"> <td>
{$to_id = $user_msgs[msg].message_to} <a href="?mode={$mode}&mid={$user_msgs[msg].message_id}">
{$trimed_to = str_replace('#','', $to_id)} {$to_id = $user_msgs[msg].message_to}
{$trimed_to = str_replace('#','', $to_id)}
{ucfirst(get_username($trimed_to))}
{ucfirst(get_username($trimed_to))}
</a> </a>
</td> </td>
{/if} {/if}
<td> <td>
<a href="?mode={$mode}&mid={$user_msgs[msg].message_id}">{$user_msgs[msg].message_subject|truncate:70}</a> <a href="?mode={$mode}&mid={$user_msgs[msg].message_id}">{$user_msgs[msg].message_subject|truncate:70}</a>
</td> </td>
<td> <td>
<a id="delete_icon-{$pr_msg.message_id}" href="?mode={$mode}&delete_mid={$user_msgs[msg].message_id}"> <a id="delete_icon-{$pr_msg.message_id}" href="?mode={$mode}&delete_mid={$user_msgs[msg].message_id}">
<img src="{$imageurl}/dot.gif" border="0" class="delete_icon" /> <img src="{$imageurl}/dot.gif" border="0" class="delete_icon" />
</a> </a>
</td> </td>
<td>{$user_msgs[msg].date_added}</td> <td>{$user_msgs[msg].date_added}</td>
</tr> <td><a href="{$baseurl}/private_message.php?mode=new_msg&to={$user_msgs[msg].message_from_user}" class="btn btn-primary" title="">{lang code=' Reply '}</a></td>
{sectionelse} </tr>
<strong><em>{lang code='you_dont_hv_any_pm'}</em></strong> {sectionelse}
{/section} <strong><em>{lang code='you_dont_hv_any_pm'}</em></strong>
</table> {/section}
</div> </table>
</div>
</form> </form>
@ -78,8 +80,8 @@
<div class="pm_line"> <div class="pm_line">
{lang code='To'} : {lang code='To'} :
<strong> <strong>
{$to_id = $pr_msg.message_to} {$to_id = $pr_msg.message_to}
{$trimed_to = str_replace('#','', $to_id)} {$trimed_to = str_replace('#','', $to_id)}
<a href="{$userquery->profile_link($trimed_to)}"> <a href="{$userquery->profile_link($trimed_to)}">
{ucfirst(get_username($trimed_to))} {ucfirst(get_username($trimed_to))}
</a> </a>