ini_set("display_errors", 1); ini_set("track_errors", 1); ini_set("html_errors", 1); error_reporting(E_ERROR | E_WARNING | E_PARSE); require_once('brian_functions.php'); bb($_REQUEST,true); $usrn = $_REQUEST['usrn']; if($usrn == ""){ echo("
Problem! Please try to log in again.
"); exit(); } $repped=$_COOKIE['ecorep']; if($repped==""){ setcookie('ecorep',$usrn,time()+60*60*24*365*10,"/",".ecosmartinc.com"); } ?>Problem! Please try to log in again.
"); exit(); } $month = date("M"); $day = date("j"); $year = date("Y"); $arrow_rgt = "Error Selecting User from Data Base!
".
'Error:' . mysql_error() . '
Dbase Error
Error Checking Activity.
' . 'Error: '. mysql_error(). '
Functions for echo("$first_name $last_name");?>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
![]()
/* mysql_select_db('ecosmar_friendly', $dbcnx);
$new = @mysql_query("SELECT ID,Project_Name,status,due FROM task WHERE usrn='$usrn' AND status='Hot' ORDER BY due DESC");
$num_rows = count($new);
if($num_rows > 0){
while($row = mysql_fetch_array($new)){
$ProjID = $row[0];
$ProjName = $row[1];
$ProjStat = $row[2];
echo(" ![]() "); } } */ $new = dbq("SELECT ID,Project_Name,status,due FROM task WHERE usrn='$usrn' AND status='Hot' ORDER BY due DESC","o"); foreach($new as $row){ $ProjID = $row[0]; $ProjName = $row[1]; $ProjStat = $row[2]; echo(" ![]() "); } /* $newt = @mysql_query("SELECT ID,Project_Name,status,due FROM task WHERE usrn='$usrn' AND status='Open' ORDER BY due DESC"); if(!$newt){ echo("Problem getting Projects. Error: ". mysql_error()); } $num_rows = mysql_num_rows($newt); if($num_rows < 1){ echo("No Current Projects"); }else{ while($row = mysql_fetch_array($newt)){ $ProjID = $row[0]; $ProjName = $row[1]; $ProjStat = $row[2]; echo(" ![]() "); } } } */ $newt = dbq("SELECT ID,Project_Name,status,due FROM task WHERE usrn='$usrn' AND status='Open' ORDER BY due DESC", "o"); if (count($newt) == 0) echo "No Current Projects. \r\n"; foreach($newt as $row){ $ProjID = $row[0]; $ProjName = $row[1]; $ProjStat = $row[2]; echo(" ![]() "); } ?>
|
![]()
/* mysql_select_db('ecosmar_inv', $dbcnx);
$getquotes=mysql_query("SELECT ID,CID,started FROM quotes WHERE usrn='$usrn' ORDER BY started DESC");
if(!$getquotes){
$air[]="Problem getting Quotes. Error: ". mysql_error();
}else{
$qnumrows=mysql_num_rows($getquotes);
if($qnumrows>0){
while($row=mysql_fetch_array($getquotes)){
$QIDs[]=$row['ID'];
$CIDs[]=$row['CID'];
$start=$row['started'];
$chunk_st = chunk_split($start, 2, ':');
$chunk_arrs = explode(":", $chunk_st);
$starts = $chunk_arrs[2].'/'.$chunk_arrs[3].'/'.$chunk_arrs[0].$chunk_arrs[1];
$starteds[]= $starts;
}//while getting rows
}//there are rows
else{
echo(" No Quotes Started "); $stopit="stop"; }//no quotes }//got quotes */ $getquotes=dbq("SELECT ID,CID,started FROM quotes_inv WHERE usrn='$usrn' ORDER BY started DESC", "ao"); if (count($getquotes) == 0) echo("No Quotes Started "); foreach($getquotes as $row){ $QIDs[]=$row['ID']; $CIDs[]=$row['CID']; $start=$row['started']; $chunk_st = chunk_split($start, 2, ':'); $chunk_arrs = explode(":", $chunk_st); $starts = $chunk_arrs[2].'/'.$chunk_arrs[3].'/'.$chunk_arrs[0].$chunk_arrs[1]; $starteds[]= $starts; } if($stopit!="stop"){ $i=0; $countem=count($QIDs); /* mysql_select_db('ecosmar_contacts', $dbcnx); while($i<$countem){ $getqcon=mysql_query("SELECT first_Name,Name,Company FROM con_main WHERE ID='$CIDs[$i]'"); if(!$getqcon){ $air[]="Problem getting Quote Contacts. Error: ". mysql_error(); }else{ $qcon=mysql_fetch_array($getqcon); $first_Name=$qcon['first_Name']; $Name=$qcon['Name']; $Company=$qcon['Company']; if($Company!=""){ $greet=$Company; }else{ $greet=$first_Name." ".$Name; }//company is blank }//got quote contact */ while($i<$countem){ $qcon=dbq("SELECT first_Name,Name,Company FROM con_main WHERE ID='$CIDs[$i]'" , "ao"); if (count($qcon) > 0){ $qcon = $qcon[0]; $first_Name=$qcon['first_Name']; $Name=$qcon['Name']; $Company=$qcon['Company']; if($Company!=""){ $greet=$Company; }else{ $greet=$first_Name." ".$Name; }//company is blank }//got quote contact echo(" • " .
"X " .
"Quote $QIDs[$i] - $greet "); }//foreach air }//air is not empty ?>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||