Enterprise3.01 > Ls Comm Main.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

Ls Comm Main.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');
?>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<style type=text/css>TD.main {
    FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: arial
}
TD.header {
    FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: arial
}
TD.hidden {
    FONT-SIZE: 0pt; COLOR: #ffffff; FONT-FAMILY: arial
}
A.bluelink {
    FONT-SIZE: 8pt; COLOR: #0000ff; FONT-FAMILY: arial; TEXT-DECORATION: none
}
A.bluelink:hover {
    TEXT-DECORATION: underline
}
A.whitelink {
    FONT-SIZE: 8pt; COLOR: #ffffff; FONT-FAMILY: arial; TEXT-DECORATION: none
}
A.bluelink:hover {
    TEXT-DECORATION: underline
}
.TextBox {
    FONT-SIZE: 12px; FONT-FAMILY: Verdana,  Arial,  Helvetica,  sans-serif
}
.Button {

}

.question {
    FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: arial
}
.reply {
    FONT-SIZE: 8pt; COLOR: #ff0000; FONT-FAMILY: arial
}
.system {
    FONT-SIZE: 8pt; COLOR: #008000; FONT-FAMILY: arial
}

</style>
<script language=JavaScript>
var countDownInterval=5;
var c_reloadwidth=200
</script>
</head>
<body leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0" class="TextBox">
<hr size="1" width="100%">
<ilayer id=c_reload width="&amp;{c_reloadwidth};">
<layer id=c_reload2 width="&amp;{c_reloadwidth};" top="0" left="0"></layer>
</ilayer>
<script>
var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
window.location.reload()
return
}
if (document.all)
document.all.countDownText.innerText = countDownTime+" ";
else if (document.getElementById)
document.getElementById("countDownText").innerHTML=countDownTime+" "
else if (document.layers){
document.c_reload.document.c_reload2.document.write('<table  width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="hidden"><b id="countDownText">'+countDownTime+'</b></td></tr></table>')
document.c_reload.document.c_reload2.document.close()
}
counter=setTimeout("countDown()",  1000);
}

function startit(){
if (document.all||document.getElementById)
document.write('<table  width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="hidden"><b id="countDownText">'+countDownTime+'</b></td></tr></table>')
countDown()
}

if (document.all||document.getElementById)
startit()
else
window.onload=startit
</script>

<table cellSpacing=0 cellPadding=0 width="100%" border=0>
  <tbody>
  <tr>
    <td width=10></td>
    <td class=main>
<?
    $windowstatus 
0;

    
// lets see if the operator has closed the session
    
$lsstatus_query escs_db_query("select status from " TABLE_LS_STATUS " where session_id = '" escs_db_prepare_input($osCsid) . "' ");
    while(
$lsstatus escs_db_fetch_array($lsstatus_query)) {
        
$windowstatus $lsstatus[status];
    }

    if(
$windowstatus == '1') {
        
// lets see if there is a tech available
        
$tech_query escs_db_query("select tech_id,  status,  helping from " TABLE_LS_TECHS " order by tech_id desc ");
        while (
$tech escs_db_fetch_array($tech_query)) {
            if((
$tech[status] == 'busy') || ($tech[status] == 'yes')) {
                
// If tech status is yes or busy,  lets see if they are helping you
                
if($osCsid == $tech[helping]) {
                    
$conversation_query escs_db_query("select id,  guest,  tech,  message,  tech_reply from " TABLE_LS_CONVERSATIONS " where tech ='Sales' and session_id = '" escs_db_prepare_input($osCsid) . "' order by id desc");
                    while (
$conversation =escs_db_fetch_array($conversation_query)) {
                        if(
$conversation['tech_reply'] == '0') {
                            echo 
"<span class=\"question\"><b>$conversation[guest]:</b>&nbsp;$conversation[message]</span><br>\n";
                        }
                        if(
$conversation['tech_reply'] == '1') {
                            echo 
"<span class=\"reply\"><b>$conversation[tech]:</b>&nbsp;$conversation[message]</span><br>\n";
                        }
                        if(
$conversation['tech_reply'] == '2') {
                            echo 
"<p align=\"center\" class=\"system\">&nbsp;$conversation[message]</p><br>\n";
                        }
                    }
                } else { 
// tell the visitor the tech is busy
                    
echo "<p align=\"center\" style=\"color:red;\"><br>Sorry All Operators are busy helping other customers.</p><br>\n";
                    echo 
"<p align=\"center\">You can continue to wait or try again later.</p><br>\n";
                }
            }
        }
    } else { 
?>
        <script>
            alert("The Operator has ended this session!");
            window.open('ls_exit.php', 'livesupport',  'width=100',  'height=100');
        </script>
    <? ?>
    </td>
  </tr>
  </tbody>
</table>
</body>
</html>


Other E Commerce Scripts:

WebMaster Resources Home

©RingsWorld.com