{assign var="title" value="Contacts"}
{include file="header.html"}
{include file="error.inc.html"}

<div id="content">		
        <div class="indent-main">
            <div class="container">
                <div class="col-1 maxheight">
                	<div class="box maxheight">
                        <div class="border-top maxheight">
                            <div class="border-bottom maxheight">
                                <div class="border-right maxheight">
                                    <div class="border-left maxheight">
                                        <div class="corner-top-right maxheight">
                                            <div class="corner-top-left maxheight">
                                                <div class="corner-bottom-left maxheight">
                                                    <div class="corner-bottom-right maxheight"> 
                                                        <div class="indent-box">
                                                            <img alt="" src="{$config.root_surl}/templates/images//1page_title1.gif" class="title" /><br />
                    <div class="container tail">
                   <table><tr><td><!-- right top links -->
<a href="{$config.root_url}/logout.php">#_TPL_MEMBER_LOGOUT#</a></td>
<td><a href="{$config.root_url}/profile.php">#_TPL_MEMBER_CH_PSWD#</a></td>
<td><a href="{$config.root_url}/checks.php?id={$smarty.session._amember_id}">Checks</a></td>
<td><a href="{$config.root_url}/contacts.php?id={$smarty.session._amember_id}">Contacts</a></td>
<td><a href="{$config.root_url}/report.php?id={$smarty.session._amember_id}">Report</a></td>
{foreach from=$member_links item=t key=u}
<a href="{$u|escape}">{$t}</a><br />
{/foreach}
</td></tr></table>
<form name="signup" method="post" action="{$smarty.server.PHP_SELF|escape}?action=add&id={$smarty.get.id}">
    <table class="vedit" width="80%">
    <tr>
        <td valign="top">
 <p> Your contacts are the people who will receive notifications from Pingdom. These are the contacts you have set up so far. To edit or remove a contact, use the “Edit/Delete” options to the right of each contact in the list below. To add a new contact, simply click the “Add new contact” button. </p>
<p class="right">
    <img src="templates/images/icon_pause1.gif" alt="Running" width="12" height="12" />Notifications are sent <img src="templates/images/icon_play.gif" alt="Paused" width="12" height="12" /> Notifications are paused</p>
        </td>
    </tr>
    <tr>
        <td>
             <br class="clear" />
             <table width="100%">
				<caption>
					
				</caption>
				<tr>

					<th>#</th>
					<th>Name</th>
					<th>Phone</th>
					<th>Email</th>
					<th width="50">Edit</th>
				</tr>
{foreach item=user from=$user}
	 <tr  id="tr147301">
                    <td>{counter}</td>
                    <td>{$user.name}</td>
                    <td>{$user.phone}</td>
                    <td>
                      {$user.email}</td>
                   
                    <td>
                        {if $user.states eq 1}
                    	<a href="?action=status&id={$user.id}&s=b"><img style="border:none" id="img_paused147301" title="Pause this check" src="templates/images/icon_pause1.gif" alt="Pause" width="12" height="12" /></a>
                         {else}
                           <a href="?action=status&id={$user.id}&s=a"><img style="border:none" id="img_paused147301" title="Running this check" src="templates/images/icon_play.gif" alt="Play" width="12" height="12" /></a>
                         {/if}
                        <a title="Edit" href="?action=edit&id={$user.id}"><img style="border:none" src="templates/images/icon_edit.gif" alt="Edit" width="12" height="12" /></a>
                    	<a title="Delete" onclick="return confirm('Are you sure you want to delete check: ' + '{$user.name}' + '?')" href="?action=delete&id={$user.id}"><img style="border:none" src="templates/images/icon_delete.gif" alt="Delete" width="12" height="12" /></a>
                    </td>
                </tr>
{/foreach}



             </table>
 
             <p align="center">
             <input type="submit" name="Submit" value="Add New Contact" class="submitbutton" />
             </p> 
        </td>
    </tr>
</table>
</form>

<script type="text/javascript" src="{$config.root_surl}/includes/jquery/jquery.js?smarty"></script>
<script type="text/javascript" src="{$config.root_surl}/includes/jquery/jquery.select.js?smarty"></script>

{include file="js.country_state.js"}
                                                                <br class="clear" />
                                                            </div>
                                                            
                                                           
                                                           <!-- -->
                                                        </div>                                     
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

{include file="footer.html"}
