Enterprise3.01 > Live Support.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Enterprise3.01

Download:
enterprise3.01.zip

Category:
E Commerce

Archive Content:

Content:

Admin

Admin > Htmlarea

Admin > Htmlarea > Images

Admin > Htmlarea > Popups

Admin > Htmlarea > Popups > File

Admin > Htmlarea > Popups > File > Icons

Admin > Htmlarea > Popups > File > Images

Admin > Images

Admin > Images > Categories

Admin > Images > Graphs

Admin > Images > Icons

Admin > Includes

Admin > Includes > Boxes

Admin > Includes > Classes

Admin > Includes > Functions

Admin > Includes > Graphs

Admin > Includes > Javascript

Admin > Includes > Javascript > SpiffyCal

Admin > Includes > Javascript > SpiffyCal > Images

Admin > Includes > Languages

Admin > Includes > Languages > English

Admin > Includes > Languages > English > CVS

Admin > Includes > Languages > English > Images > Buttons

Admin > Includes > Languages > English > Images > Buttons > CVS

Admin > Includes > Languages > English > Images > Copy Of Buttons

Admin > Includes > Languages > English > Images > Copy Of Buttons > CVS

Admin > Includes > Languages > English > Images > CVS

Admin > Includes > Languages > English > Modules > Newsletters

Admin > Includes > Languages > Espanol

Admin > Includes > Languages > Espanol > CVS

Admin > Includes > Languages > Espanol > Images > Buttons

Admin > Includes > Languages > Espanol > Images > Buttons > CVS

Admin > Includes > Languages > Espanol > Images > CVS

Admin > Includes > Languages > Espanol > Modules > Newsletters

Admin > Includes > Languages > German

Admin > Includes > Languages > German > CVS

Admin > Includes > Languages > German > Images > Buttons

Admin > Includes > Languages > German > Images > Buttons > CVS

Admin > Includes > Languages > German > Images > CVS

Admin > Includes > Languages > German > Modules > Newsletters

Admin > Includes > Local

Admin > Includes > Modules > Newsletters

Admin > Live Support

Admin > Live Support > Blue

Admin > Live Support > Green

Admin > Live Support > Red

Admin > Live Support > White

Admin > Live Support > Yellow

Download

Images

Images > Banners

Images > Default

Images > Icons

Images > Infobox

Images > Mail

Includes

Includes > Boxes

Includes > Classes

Includes > Color Schemes > 1

Includes > Color Schemes > 10

Includes > Color Schemes > 11

Includes > Color Schemes > 12

Includes > Color Schemes > 2

Includes > Color Schemes > 3

Includes > Color Schemes > 4

Includes > Color Schemes > 5

Includes > Color Schemes > 6

Includes > Color Schemes > 7

Includes > Color Schemes > 8

Includes > Color Schemes > 9

Includes > Functions

Includes > Javascript

Includes > Languages

Includes > Languages > English

Includes > Languages > English > CVS

Includes > Languages > English > Images

Includes > Languages > English > Images > Buttons

Includes > Languages > English > Images > Buttons > CVS

Includes > Languages > English > Images > CVS

Includes > Languages > English > Modules > Order Total

Includes > Languages > English > Modules > Payment

Includes > Languages > English > Modules > Shipping

Includes > Languages > Espanol

Includes > Languages > Espanol > CVS

Includes > Languages > Espanol > Images

Includes > Languages > Espanol > Images > Buttons

Includes > Languages > Espanol > Images > Buttons > CVS

Includes > Languages > Espanol > Images > CVS

Includes > Languages > Espanol > Modules > Order Total

Includes > Languages > Espanol > Modules > Payment

Includes > Languages > Espanol > Modules > Shipping

Includes > Languages > French

Includes > Languages > French > Images > Buttons

Includes > Languages > French > Modules > Payment

Includes > Languages > German

Includes > Languages > German > CVS

Includes > Languages > German > Images

Includes > Languages > German > Images > Buttons

Includes > Languages > German > Images > Buttons > CVS

Includes > Languages > German > Images > CVS

Includes > Languages > German > Modules > Order Total

Includes > Languages > German > Modules > Payment

Includes > Languages > German > Modules > Shipping

Includes > Local

Includes > Modules

Includes > Modules > Order Total

Includes > Modules > Payment

Includes > Modules > Shipping

Install

Install > Images

Install > Images > Layout

Install > Includes

Install > Includes > Functions

Install > Templates

Install > Templates > Main Page

Install > Templates > Pages

Live Support

Live Support > Blue

Live Support > Green

Live Support > Red

Live Support > White

Live Support > Yellow

Members

Members > Cashhub

Members > Cashhub > Images

Members > User

Members > User > Test Dir

Templates

Templates > Content

Live Support.php:


<?
/*

    Live Support v 1.2b
    Author: Mike Lessar <mlessar <at> bluetruck <dot> net>

    for use with:
    Enterprise Shopping Cart
    http://www.enterprisecart.com

    Released under the GNU General Public License

*/

require('includes/application_top.php');

if(
$login) {
    
// first lets check to see if live support is really available
    
$support_query escs_db_query("select status from " TABLE_LS_TECHS " where status='yes' or status='busy' ");
    
$support_results escs_db_num_rows($support_query);
    if(
$support_results 0) {
        
// enter the user into the que
        
$guest escs_db_prepare_input($HTTP_POST_VARS['login']);
        if(!
$guest) { $guest "Guest"; }
        
$start_msg "Welcome $guest,  please wait a few seconds for a live operator to come to your assistance.";
        
escs_db_query("insert into " TABLE_LS_CONVERSATIONS " (id,  guest,  tech,  session_id,  message,  tech_reply) values ('',  '" escs_db_prepare_input($guest) . "',  'Sales',   '" escs_db_prepare_input($osCsid) . "',  '" escs_db_prepare_input($start_msg) . "',  '2')");
        
escs_db_query("insert into " TABLE_LS_STATUS " (id,  session_id,  status) values ('',  '" $osCsid "',  '1')");
        
escs_redirect(escs_href_link('ls_start.php',  '',  'NONSSL'));
    } else {
        echo 
"<br><br><div align=\"center\"><b>Sorry but support is currently not available!</b></div>\n";
    }
} else {

?>
<html>
<head>
<title>Live Support </title>
<style type="text/css">
<!--
td.main {
    font-size: 8pt;
    font-family: arial;
    color: #000000;
}
td.header {
    font-size: 8pt;
    font-family: arial;
    color: #ffffff;
}
td.hidden {
    font-size: 0pt;
    font-family: arial;
    color: #ffffff;
}
a.bluelink{
    font-size: 8pt;
    font-family: arial;
    color: #0000ff;
    text-decoration: none;
}
a.bluelink:hover{
    text-decoration: underline;
}
a.whitelink{
    font-size: 8pt;
    font-family: arial;
    color: #ffffff;
    text-decoration: none;
}
a.bluelink:hover{
    text-decoration: underline;
}

.TextBox {
border: #000000 1px inset;
border-color: #000000 #000000 #000000 #000000;
background-attachment: fixed;
background-image: url(live_support/box_shadow.gif);
font-family: Verdana,  Arial,  Helvetica,  sans-serif;
font-size: 12px;
color: #000000;
}
.Button {
border: #000000 1px inset;
border-color: #000000;
font-family: Verdana,  Arial,  Helvetica,  sans-serif;
font-size: 11px;
color: #000000;
}
-->
</style>
</head>
<body bgcolor="<? echo LS_COLOR?>" style="margin: 0" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<center>
<p>&nbsp;</p>
<b>Live Support</b>
  <table  width="250" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center">
        <table  width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#000000">
          <tr>
            <td bgcolor="#ffffff" align="center">
              <table  width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="center">
                    <table  width="100%" border="0" cellspacing="2" cellpadding="0">
                      <tr>
                        <td>
                          <table  width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#000000">
                            <tr>
                              <td bgcolor="<? echo LS_COLOR?>" align="center">
                                <b> Login </b> </td>
                            </tr>
                            <tr>
                              <td bgcolor="#ffffff" class="main" align="center"><font color="#008040"><b></b></font>
                                <table  width="100%" border="0" cellspacing="0" cellpadding="2">
                                  <tr>
                                    <td class="main" align="center"> <br>
                                      <form action="live_support.php" method="post" target="livesupport">
                                        <input type="text" name="login" size="10" class="textbox">
                                        <input type="submit" value="Enter" class="button">
                                      </form>
                                      Our live representatives are waiting for you. Please enter your name in the box above and press the enter button. <br>
                                      <br>
                                    </td>
                                  </tr>
                                </table>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>

</center>
</body>
</html>
<?
}
?>


Other E Commerce Scripts:

WebMaster Resources Home

©RingsWorld.com