Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'dbc.php';
- page_protect();
- if (isset($_SESSION['user_id'])) {?>
- <? }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>MemoBuzz- Reaching customers where they are, when they need it! </title>
- <link rel="stylesheet" type="text/css" href="./css/memobuzz.css" />
- <script type="text/javascript"SRC="./javascript/dynamic_form.js"></script>
- </head>
- <body onload="addRow('dataTable')">
- <noscript>
- <div class="noscript-background">
- <div class="noscript-text">
- <h2>
- This page requires javascript.<br/>
- Please enable javavscript, or add an exception for this page and then refresh your browser.<br/>
- See <a href="./enable-js.php#desktop">here</a> for instructions to enable javascript in popular desktop browsers.<br/>
- See <a href="./enable-js.php#mobile">here</a> for instructions to enable javascript in popular mobile browsers.
- </h2>
- </div>
- </div>
- </noscript>
- <table cellpadding="10" width="100%" border="1">
- <tr valign="center">
- <div class="myaccount">
- <img align="left" src="./images/logo-memobuzz.png"/>
- <p align="right">
- <strong>Welcome, <?php echo $_SESSION['user_name'];?></strong>  
- <a href="mysettings.php">Settings</a>•<a href="logout.php">Logout </a>
- </p>
- </div>
- </tr>
- <tr bgcolor="c2dba8">
- <td valign="top" width="50%">
- <h2 align="center">Contact List</h2>
- <table width="100%" border="1" bgcolor="ffffff">
- <?php
- require_once("credentials.php");
- require_once("MCSOAPClient.php");
- $group_id = mysql_fetch_row(mysql_query("select company from users where id='$_SESSION[user_id]'"));
- $arguments = array(array("Key" => "group_id", "Value" => $group_id[0]),
- array("Key" => "first_name", "Value" => "select"),
- array("Key" => "last_name", "Value" => "select"),
- array("Key" => "phone_num", "Value" => "select"),
- array("Key" => "email", "Value" => "select"));
- $result = $MySOAPClient->DoWebService("Get", $MySOAPClient->CreateWebServiceParams("group.listmembers", $arguments));
- $groupContacts = json_decode(json_encode($result), true);
- $grouplist = $groupContacts["Data"];
- echo "<thead>";
- echo "<tr>";
- echo "<th>Name</th>";
- echo"<th>Phone Number</th>";
- echo"<th>Email</th>";
- echo "</tr>";
- echo "</thead>";
- echo "<tr>";
- echo "<td colspan = \"3\"> </td>";
- echo "</tr>";
- for ($i = 0; $i < sizeof($grouplist); $i++) {
- echo "<tr>";
- echo "<td>".$grouplist[$i][1]["Value"]." ".$grouplist[$i][2]["Value"]."</td>";
- echo "<td>".$grouplist[$i][3]["Value"]."</td>";
- echo "<td>".$grouplist[$i][4]["Value"]."</td>";
- echo "</tr>";
- }
- ?>
- </table>
- <input type="button" value="Edit Contacts" onclick='uploadCSV()'/>
- </td>
- <td valign="top" width="50%">
- <h2 align="center">Bulk Messages</h2>
- <!--<form id="message" action="./group-message.php" method="post">-->
- <p align="center">
- <select name="message">
- <option value="" selected="selected"></option>
- <option value="Payment Due">Payment Due</option>
- <option value="Appointment Reminder">Appointment Reminder</option>
- <option value="Sale Today">Sale Today</option>
- <option value="5% off with this Message">5% off with this Message</option>
- <option value="Membership Renewal Notice">Membership Renewal Notice</option>
- </select>
- </p>
- <p align="center">
- <input type="submit" value="Send Message"/> 
- <input type="button" value="Custom Message" onclick='uploadCSV()'/> 
- <input type="button" value="New Keyword" onclick='uploadCSV()'/>
- </p>
- <!--</form>-->
- </td>
- </tr>
- <tr>
- <td width="60%" valign="top" colspan="2" bgcolor="c2dba8">
- <h2 align="center">Contact Upload</h2>
- <form id="upload" action="./contact-upload.php" method="post" onsubmit="submitForm()">
- <input type="button" value="Add Row" onclick="addRow('dataTable')" />
- <input type="button" value="Delete Row" onclick="deleteRow('dataTable')" />
- <input type="hidden" name="numRows" value="0" />
- <table id="dataTable" width="100%" border="1" bgcolor="ffffff">
- <thead>
- <tr>
- <th>Select</th>
- <th>No.</th>
- <th>First Name</th>
- <th>Last Name</th>
- <th>Mobile #</th>
- <th>Email Address</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- <input type="Submit" value="Submit" />
- <input type="button" value="Upload CSV" onclick='uploadCSV()' />
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement