<file_sep><?php include("include/include_index.php"); ?>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style><form name="form1" method="post" action="">

</form>

<file_sep><?php

function jsDebug($strDebug)
{
    	echo "<script language='JavaScript' type='text/javascript'>alert('";
    	echo "MySQL Query : $strDebug";
    	echo "');</script>"; 
}


//Aceasta clasa permite citirea inregistrarilor
//dintr-o tabela sau interogare MySQL
//Data: 29.11.2006
//Autor: <NAME>
class CTableReader
{
    var $m_tableName = null;
    var $m_strSQL = null;
    var $m_whereClause = null;
    var $m_fields = null;
    var $m_keys = null;
    var $m_results = null;
    var $m_rows = null;
    var $m_externalQuery = null;

    /***************************************************************
     CTableReader constructor
     arguments: $tableName tyep: string
    ***************************************************************/
    function CTableReader($tableName) {
	$this->m_tableName = $tableName;
	$this->m_strSQL = "";
	$this->m_whereClause = "";
	$this->m_fields = array();
	$this->m_keys = array();
	$this->m_externalQuery = false;
    }

    function addField($fieldName) {
	$this->m_fields[count($this->m_fields)] = $fieldName;
    }

    function setFilter($key, $value) {
    	$this->m_keys[$key] = $value;
    }

    function exec() {
      if(!$this->m_externalQuery) {	
        $this->m_strSQL = "SELECT ";
		foreach($this->m_fields as $key => $field) {
	     	if($key > 0) $this->m_strSQL .= ", ";
	     	$this->m_strSQL .=  $field;
		}

        $this->m_strSQL .= " FROM ".$this->m_tableName;
        
		if(count($this->m_keys) > 0) {
		   $this->m_whereClause = " WHERE ";
		   $b_first=TRUE;
		   foreach($this->m_keys as $key => $value) {
		     	if(!$b_first) $this->m_whereClause .= " AND ";
			$this->m_whereClause .= $key. "=".  $value;
			$b_first=FALSE;
		   }
		   $this->m_strSQL .= $this->m_whereClause;
		}
        
      }
	//print_r($this->m_strSQL);

	if(!$this->m_results = mysql_query($this->m_strSQL)) {
	    jsDebug($this->m_strSQL);
	}
	else {
    	     $this->m_rows = mysql_fetch_array($this->m_results);
	}
	if($this->m_rows) return TRUE;
	return FALSE;
    }

    function next() {
	if($this->m_results )
    	     $this->m_rows = mysql_fetch_array($this->m_results);

	if($this->m_rows) return true;
	return false;
    }

    function getValue($fieldName, $with_echo=true) {
	if($this->m_rows) {
	  if($with_echo)
		echo $this->m_rows[$fieldName];
	   else
	   	return $this->m_rows[$fieldName];
	}
	return null;
    }
    
    function setSQL($sqlQuery) {
    	$this->m_strSQL = $sqlQuery;
    	$this->m_externalQuery = true; 
    }
           
    
    function seek($iRow) {
    	if($this->m_results)
    	   mysql_data_seek($this->m_results, $iRow);
    }

    function debug() {
	    jsDebug($this->m_strSQL);
    }


};


//Aceasta clasa permite adaugarea/modificarea inregistrarilor
//dintr-o tabela sau interogare MySQL
//Data: 01.12.2006
class CTableUpdate
{
    var $m_tableName = null;
    var $m_strSQL = null;
    var $m_whereClause = null;
    var $m_fields = null;
    var $m_keys = null;
    var $m_results = null;

    /***************************************************************
     CTableReader constructor
     arguments: $tableName type: string
    ***************************************************************/
    function CTableUpdate($tableName) {
	$this->m_tableName = $tableName;
	$this->m_strSQL = "";
	$this->m_fields = array();
        $this->m_keys = array();
    }

    function addPostString($fieldName,$value) {
	$this->m_fields[$fieldName] = "'${_POST[$value]}'";
    }
    function addPostNumber($fieldName,$value) {
	$this->m_fields[$fieldName] = $_POST[$value];
    }

    function addStringValue($fieldName,$value) {
	$this->m_fields[$fieldName] = "'".$value."'";
    }
    function addNumericValue($fieldName,$value) {
	$this->m_fields[$fieldName] = $value;
    }

    function setFilter($fieldName, $value) {
	$this->m_keys[$fieldName] = $value;
    }

    function formWhereClause() {
	if(count($this->m_keys) > 0) {
	   $this->m_whereClause = " WHERE ";
	   $b_first=TRUE;
	   foreach($this->m_keys as $key => $value) {
	     	if(!$b_first) $this->m_whereClause .= " AND ";
		$this->m_whereClause .= $key. "=".  $value;
		$b_first=FALSE;
	   }
	}
    }


    function exec() {
   	CTableUpdate::formWhereClause();
        $this->m_strSQL = "SELECT * FROM ".$this->m_tableName. $this->m_whereClause;
    	if($res = mysql_query($this->m_strSQL)) {
	  if(mysql_num_rows($res) > 0) { // Inregistrarea exista
        	$this->m_strSQL = "UPDATE ". $this->m_tableName. " SET ";
		$b_first=TRUE;
		foreach($this->m_fields as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $key. "=".  $value;
		    $b_first=FALSE;
		}
		if(isset($this->m_whereClause)) {
            		$this->m_strSQL .= $this->m_whereClause;
		}
	  }
          else {			  // Inregistrarea nu exista
        	$this->m_strSQL = "INSERT INTO ". $this->m_tableName. " ( ";
		$b_first=TRUE;
		foreach($this->m_keys as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $key;
		    $b_first=FALSE;
		}
		foreach($this->m_fields as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $key;
		    $b_first=FALSE;
		}

		$this->m_strSQL .= " ) VALUES ( ";
		$b_first=TRUE;
		foreach($this->m_keys as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $value;
		    $b_first=FALSE;
		}
		foreach($this->m_fields as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $value;
		    $b_first=FALSE;
		}
		$this->m_strSQL .= " ) ";
	  }
	}

	//print_r($this->m_strSQL);
	if(strlen($this->m_strSQL) > 0) {
	   if(!$this->m_results = mysql_query($this->m_strSQL)) {
	    	jsDebug($this->m_strSQL);
	    	print_r($this->m_strSQL);
	   }
	   else {
		return TRUE;
	   }
	}
	return FALSE;
    }

    function adauga() {
   	CTableUpdate::formWhereClause();
   	  // Adauga o inregistrare
        $this->m_strSQL = "INSERT INTO ". $this->m_tableName. " ( ";
		$b_first=TRUE;
		foreach($this->m_keys as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $key;
		    $b_first=FALSE;
		}
		foreach($this->m_fields as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $key;
		    $b_first=FALSE;
		}

		$this->m_strSQL .= " ) VALUES ( ";
		$b_first=TRUE;
		foreach($this->m_keys as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $value;
		    $b_first=FALSE;
		}
		foreach($this->m_fields as $key => $value) {
	     	    if(!$b_first) $this->m_strSQL .= ", ";
		    $this->m_strSQL .= $value;
		    $b_first=FALSE;
		}
		$this->m_strSQL .= " ) ";
	  
	

	//print_r($this->m_strSQL);
	if(strlen($this->m_strSQL) > 0) {
	   if(!$this->m_results = mysql_query($this->m_strSQL)) {
	    	jsDebug($this->m_strSQL);
	   }
	   else {
		return TRUE;
	   }
	}
	return FALSE;
    }

    
   function debug() {
	    jsDebug($this->m_strSQL);
   }

};

///include("check_pass.php");

?>
<file_sep><?php
  //Conectare la baza de date

  $conn = mysql_connect('localhost','nuntala_nick','nicu0712');
  if(!$conn) {
  	echo "Could not connect to mysql server".mysql_error();
	die();
  } 
  if(!mysql_select_db('nuntala_book')) {
  	echo "Could not select nuntala_book".mysql_error();
	die();
  }
?>

<file_sep><?php 
session_start (); 
ob_start(); 

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false); 
header("Cache-Control: private");
header("Pragma: no-cache"); // HTTP/1.0 


if($_SESSION['admin_csm'] == null || $_SESSION['admin_csm'] != 1967)
header( "Location: start.php");

?>
<file_sep><?php //include("file:///D|/_Works/_tipo_4/tipo4/dbscript/check_pass_tip_cont.php"); ?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Magic Weddings  ||  Cartea de oaspeti</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///D|/_Works/_tipo_4/tipo4/animate.js">
</script>
<base target="middle">
<link href="file:///D|/_Works/_tipo_4/tipo4/cases.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style9 {	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #FFFFFF;
}
.style14 {color: #000099}
.style21 {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 12px;}
body {
	background-image: url(back_page.jpg);
}
.style29 {
	color: #FFCCFF;
	font-family: Arial, Helvetica, sans-serif;
}
.style30 {
	font-size: 12px;
	font-style: italic;
}
.style31 {font-size: 12px}
-->
</style>
</head>


<?php
include("dbscript/connect.php");
include("dbscript/db_utils.php");
include("dbscript/data_page.php");


	if(isset($_POST['date_comment'])) {
  	if($_POST['date_comment'] == 'adauga') {
		
    $dbUpdate = new CTableUpdate('guest_book');
	$dbUpdate->setFilter('nume', "'{$_POST['nume']}'");

	$dbUpdate->addPostString('mail','mail');
    $dbUpdate->addPostString('mesaj','mesaj');
	$dbUpdate->addStringValue('data', date("Y-m-d"));
    
	$dbUpdate->exec();
  }
}


	$dbGuest = new CTableReader('guest_book');
	$qryLista = " select * from guest_book order by guest_id desc";
  	$dbGuest->setSQL($qryLista);
  	$dbGuest->exec();

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%"></td>
    <td width="33%">
      <table border="0" width="500" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td>                  <p align="center"><font size="5" face="Verdana" color="#FF99FF">Magic Weddings - Carte de oaspeti </font>                
                  <p align="center"><font size="5" face="Verdana" color="#FF99FF"><br>
                  </font></b></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td width="100%">
            <form method="POST" action="carte_oaspeti.php" name="carte_oaspeti">
              <!--webbot bot="SaveResults" startspan
              U-File="_private/form_results.txt" S-Format="TEXT/CSV"
              S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
              <!--webbot
              bot="SaveResults" endspan i-checksum="43374" -->
              <table border="0" width="700" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="2">
                    <div align="center"><a href="javascript:window.close();">
                      </a>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><div align="left">
                            <input name="button01" type=button id="button01" onClick="javascript:top.window.close();" value="Inchide Pagina">
                          </a></div></td>
                          <td>&nbsp;</td>
                          <td><div align="right">
                            <input name="button02" type=button id="button02"  onClick="new_comment()" value="Adauga un Comentariu">
                          </a></div></td>
                        </tr>
                      </table>
                      ��������������������������������������������
					</div></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="2"><p align="center">&nbsp;</p>
                    <table width="100%" border="0" cellpadding="0" cellspacing="2">
                      <tr>
                        <td><div align="center">
                          <table width="100%">
                            <tr>
                              <td><div align="center"></div></td>
                            </tr>
                          </table>
                        </div></td>
                      </tr>
                      <tr>
					  
					  <?php
					  $iLinie=0;
								  	  
					while($dbGuest->getValue('guest_id',FALSE)) {
					echo "<tr id='trid".$iLinie."'>";

										echo "<td><div align='left'>";
										echo "<p><span class='style29'><span class='style31'>";
										echo $dbGuest->getValue('guest_id', FALSE);
										echo ". ";
										echo "&nbsp;&nbsp;&nbsp";
										echo ymd_to_dmy($dbGuest->getValue('data', FALSE));
										echo "</span> &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<strong>";
										echo $dbGuest->getValue('nume', FALSE);
										echo "</strong> &nbsp;&nbsp;<span class='style30'>";
										echo "( ";
										echo $dbGuest->getValue('mail', FALSE);
										echo " )";
										echo "</span></span></p>";
										echo "<p><span class='style29'>&quot;<em>";
										echo $dbGuest->getValue('mesaj', FALSE);
										echo "</em>&quot;<br>";
										echo "----------------------------------------------------------------------------------------------------------------------------------------- </span><br>";
										echo "<p><br>";
										echo "</p>";
										echo "</div></td>";
										echo "</tr>";
										
										
						$iLinie++;
						$dbGuest->next();
									  }

					  
					  
					  ?>
                        <td><div align="left">
                          <p>&nbsp;</p>
                          <p><br>
                          </p>
                        </div></td>
                      </tr>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>
                          <input name="button03" type=button id="button03" onClick="javascript:top.window.close();" value="Inchide Pagina">
                        </a></td>
                        <td>&nbsp;</td>
                        <td><div align="right">
                          <input name="button04" type=button id="button04" onClick="new_comment()" value="Adauga un Comentariu">
                        </a></div></td>
                      </tr>
                    </table>                    <p align="center">&nbsp;</p></td>
                </tr>
              </table>
              <div align="center">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="100%"></td>
                  </tr>
                </table>
                
				
				
				
				
				<div align="center"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','file:///D|/_Works/_tipo_4/tipo4/images/ajutor2.jpg',1)"><br>
				</a></div>
              </div>
                <span class="style14"> </span>
                </div>
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td width="34%"></td>
  </tr>
</table>
</body>

</html>

<script language="JavaScript" fptype="dynamicanimation">

function new_comment()


{
   var thisForm = document.forms['carte_oaspeti'];
   
    thisForm.action= 'adauga_comentariu.php';
	thisForm.target = "_self";
	thisForm.submit();
	return false;
}
	 

</script>


<file_sep><?php

//returneaza formatul MySQL YYYY-mm-dd
function dmy_to_ymd($dmyDate) 
{
  $day=0;
  $month=0;
  $year=0;
  
  list($day, $month, $year) = sscanf($dmyDate, "%d-%d-%d");
  $mysql_date = $year."-".$month."-".$day;
  return $mysql_date;
}	

//Returneaza formatul uman dd-mm-YYYYY
function ymd_to_dmy($ymdDate) 
{
  $day=0;
  $month=0;
  $year=0;
  
  list($year, $month, $day) = sscanf($ymdDate, "%d-%d-%d");
  $user_date = sprintf("%02d-%02d-%04d", $day, $month, $year);
  return $user_date;
}	


?><file_sep><?php //include("file:///D|/_Works/_tipo_4/tipo4/dbscript/check_pass_tip_cont.php"); ?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Magic Weddings  ||  Cartea de oaspeti</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///D|/_Works/_tipo_4/tipo4/animate.js">
</script>
<base target="middle">
<link href="file:///D|/_Works/_tipo_4/tipo4/cases.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style14 {color: #000099}
body {
	background-image: url(back_page.jpg);
}
.style38 {
	color: #FFCCFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style40 {
	color: #FFFFFF;
	font-weight: bold;
}
a:link {
	color: #FFCCFF;
}
a:visited {
	color: #FF66FF;
}
a:hover {
	color: #FFFFFF;
}
a:active {
	color: #FF66FF;
}
-->
</style>
</head>


<?php
include("dbscript/connect.php");
include("dbscript/db_utils.php");
include("dbscript/data_page.php");


/*
	if(isset($_POST['date_comment'])) {
  	if($_POST['date_comment'] == 'adauga') {
		
    $dbUpdate = new CTableUpdate('guest_book');
	$dbUpdate->setFilter('nume', "'{$_POST['nume']}'");

    $dbUpdate->addPostString('nume','nume');
	$dbUpdate->addPostString('e-mail','mail');
    $dbUpdate->addPostString('mesaj','mesaj');
	$dbUpdate->addStringValue('data', date("Y-m-d"));
    
	$dbUpdate->exec();
  }
}

*/
/*
	$dbComentarii = new CTableReader('guest_book');
	$qryLista = " SELECT * FROM guest_book";
  	$dbComentarii->setSQL($qryLista);
  	$dbComentarii->exec();
	$nume = $dbComentarii->getValue("nume",FALSE);
	$email = $dbComentarii->getValue("e-mail",FALSE);
	$mesaj = $dbComentarii->getValue("mesaj",FALSE);
	$data = date("Y-m-d");
	*/
	
//////////////////////////////////////////////////

/*
	if(isset($_POST['date_comment'])) {
  	if($_POST['date_comment'] == 'adauga') {
		
    $dbUpdate = new CTableUpdate('guest_book');
    //$dbUpdate->setFilter('guest_id', 'guest_id');
    //$dbUpdate->setFilter('nume_cerneala', "'{$_POST['nume_cerneala']}'");
$data = date("Y-m-d");
$nume = $_POST['nume'];
$email = $_POST['mail'];
$mesaj = $_POST['mesaj'];

    $dbUpdate->addPostString('nume',$nume);
	$dbUpdate->addPostString('e-mail',$email);
    $dbUpdate->addPostString('mesaj',$mesaj);
	$dbUpdate->addPostString('data',dmy_to_ymd($data));

    $dbUpdate->exec();
  }
}

*/
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%"></td>
    <td width="33%">
      <table border="0" width="500" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td>                  <p align="center"><font size="5" face="Verdana" color="#FF99FF">Magic Weddings - Adauga un comentariu </font>                
                  <p align="center"><font size="5" face="Verdana" color="#FF99FF"><br>
                  </font></b></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td width="100%">
            <form method="POST" action="carte_oaspeti.php" name="form_new_comment">
              <!--webbot bot="SaveResults" startspan
              U-File="_private/form_results.txt" S-Format="TEXT/CSV"
              S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
              <!--webbot
              bot="SaveResults" endspan i-checksum="43374" -->
              <table border="0" width="700" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="2">
                    <div align="center"><a href="javascript:window.close();">
                      </a>
                      <table width="100%" border="1" cellpadding="1" cellspacing="1" bordercolor="#FF66CC">
                        <tr>
                          <td width="19%" class="style38"><div align="right">Numele:</div></td>
                          <td width="81%"><font size="2" face="Arial">
                            <input name="nume" type="text" value="" size="25">
                          </font></td>
                        </tr>
                        <tr>
                          <td class="style38"><div align="right">Adresa de email: </div></td>
                          <td><font size="2" face="Arial">
                            <input name="mail" type="text" size="25">
                          </font></td>
                        </tr>
                        <tr>
                          <td valign="top" class="style38"><div align="right">Comentariu:</div></td>
                          <td><font size="2" face="Arial">
                            <textarea name="mesaj" cols="60" rows="3"></textarea>
                          </font></td>
                        </tr>
                      </table>
                    </div></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="2"><div align="center">
                    <input name="button2" type=button onClick="validareDate();" value="Adauga">
                  </a></div>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td></a></td>
                        <td>&nbsp;</td>
                        <td><div align="right"></a></div></td>
                      </tr>
                    </table>                    
                    <p align="center" class="style38"><a href="carte_oaspeti.php" target="_self"><span class="style40">retur la cartea de oaspeti </span></a><span class="style40"></span></p></td>
                </tr>
              </table>
              <div align="center">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="100%"></td>
                  </tr>
                </table>
                
				
				
				
				
				<div align="center"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','file:///D|/_Works/_tipo_4/tipo4/images/ajutor2.jpg',1)"><br>
				</a></div>
              </div>
                <span class="style14"> </span>
                </div>
				<input type="hidden" name="date_comment">
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td width="34%"></td>
  </tr>
</table>
</body>

</html>

<script language="JavaScript" fptype="dynamicanimation">

function validareDate()

{
   var thisForm = document.forms['form_new_comment'];
   
  if(thisForm.nume.value.length == 0) {
      alert('Toate campurile trebuie completate');
	  thisForm.nume.focus();
	  return;
   }
 
   if(thisForm.mail.value.length == 0) {
      alert('Toate campurile trebuie completate');
	  thisForm.mail.focus();
	  return;
   }
   
     if(thisForm.mesaj.value.length == 0) {
      alert('Toate campurile trebuie completate');
	  thisForm.mesaj.focus();
	  return;
   }
   
   thisForm.date_comment.value="adauga";
   thisForm.target = "_self";
   thisForm.submit();
	return false;

}  

</script>
<file_sep>[general]
index = "Home|/"
despre-noi = "Despre noi|/despre-noi"
servicii = "Servicii|/servicii"
info = "Informatii utile|/info"
guestbook = "Carte de oaspeti|/guestbook"
contact = "Contact|/contact"

[contact]
sidebarAddress[] = "Deva - HD"
sidebarAddress[] = "Str. Mihai Eminescu"
sidebarAddress[] = "Bl. B, Sc. E, Ap. 71, Et. 2"
sidebarPhones[] = "0745.167.940"
sidebarPhones[] = "0729.736.882"

[servicii]
aranjamente-florale = "Aranjamente florale|/aranjamente-florale"
aranjamente-din-baloane = "Aranjamente din Baloane|#"
decoratiuni-masa-festiva = "Decoratiuni Masa Festiva|#"
decoratiuni-salon = "Decoratiuni de Salon|#"
diverse = "Diverse|#"

[servicii_aranjamente-florale]
baloane-cu-heliu = "Baloane cu heliu|/baloane-cu-heliu"
ghirlande = "Ghirlande|/ghirlande"
inimi-din-baloane = "Inimi din baloane|/"
initiale-si-cifre = "Initiale si cifre|/initiale-si-cifre"
jumbo = "Jumbo|/jumbo"


[despre_noi]
servicii[] = decoratiuni sala
servicii[] = huse scaune
servicii[] = decoratiuni biserica
servicii[] = decoratiuni masina
servicii[] = decoratiuni baloane
servicii[] = invitatii
servicii[] = aranjamente mese festive
servicii[] = carduri
servicii[] = aranjamente prezidiu
servicii[] = meniuri
servicii[] = sonorizare
servicii[] = foto, video


<file_sep><?php 

session_start (); 
ob_start(); 

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false); 
header("Cache-Control: private");
header("Pragma: no-cache"); // HTTP/1.0 

// citire date din tabela

include("dbscript/connect.php");
include("dbscript/db_utils.php");

/*
	$dbLogin = new CTableReader("admin_tab");
  	$strSQL = sprintf("SELECT * FROM admin_tab WHERE numele='%s' AND parola_user='%s'",
           mysql_real_escape_string($_POST['nume']),
           sha1(mysql_real_escape_string($_POST['parola'])));
  	$dbLogin->setSQL($strSQL);
  	$dbLogin->exec();
	
 	 jsDebug("2");
  	jsDebug($dbLogin->getValue('numele',FALSE));
	jsDebug($dbLogin->getValue('parola_user',FALSE));
  */
  //if($dbLogin->getValue('admin_id',FALSE)) {
	   
	   if($_POST['nume'] == "cosmina" & $_POST['parola'] == "deva2009") {
	   $_SESSION['admin_csm'] = 1967;
       header( "Location: lista_comentarii.php");
       exit();
	   }
?>


<html>

<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="../animate.js">
</script>
<link href="../cases.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style11 {	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style7 {
	font-size: 14px;
	color: #000000;
	font-weight: bold;
}
.style18 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
}
.style20 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #FF0000;
}
body {
	background-image: url();
	background-color: #D894FC;
}
-->
</style>


<title>Autentificare esuata</title><body topmargin="0" leftmargin="0" onLoad="dynAnimation()">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%"></td>
    <td width="33%">
      <table border="0" width="720" cellspacing="0" cellpadding="0">
        <tr>
          <td width="150%">
            <table border="0" width="100%" cellspacing="0" bordercolorlight="#FFFFFF" bordercolordark="#0099CC" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td width="100%">
                  <form method="POST" action="err_no_user.php" name="form_error" >
                    <!--webbot bot="SaveResults" startspan
                    U-File="../_private/form_results.txt" S-Format="TEXT/CSV"
                    S-Label-Fields="TRUE" -->
                    <!--webbot
                    bot="SaveResults" endspan i-checksum="43374" -->
<p align="center"><span class="style20">ATENTIE !!! </span><span class="style18"><br>
    tentativa neautorizata de intrare in server </span><span class="style11"><br>
<span class="style7">de pe IP-ul: <?php echo $_SERVER['REMOTE_ADDR']; ?> </span></span></p>
                  </form>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
    <td width="34%"></td>
  </tr>
</table>

</body>

</html><file_sep><?php  session_start(); ?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Magic Weddings</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="animate.js">
</script>
<link href="cases.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-top: 9px;
	background-image: url(back_page.jpg);
}
a:link {
	color: #003366;
}
a:visited {
	color: #006699;
}
a:hover {
	color: #000000;
}
a:active {
	color: #000000;
}
.style29 {color: #FFCCFF}
-->
</style>
</head>


<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%"></td>
    <td width="33%">
      <table border="0" width="720" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%">&nbsp;</td>
        </tr>
        <tr>
          <td width="100%">
            <form method="POST" action="err_no_user.php"  name="form_logare">
              <!--webbot bot="SaveResults" startspan
              U-File="../_private/form_results.txt" S-Format="TEXT/CSV"
              S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot
              bot="SaveResults" endspan i-checksum="43374" -->
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100%">
                    <table border="1" width="100%" bordercolorlight="#FFFFFF" cellspacing="1" bordercolordark="#0099CC">
                      <tr>
                        <td width="100%">
                          <table border="0" width="100%" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="33%"></td>
                              <td width="33%">
                                <table border="1" width="400" bordercolorlight="#FFFFFF" cellspacing="4" bordercolordark="#0099CC">
                                  <tr>
                                    <td width="43%"><span class="style29"><font face="Arial" size="2">User : </font></span></td>
                                    <td width="57%">
                                      <p align="center"><font size="2" face="Arial"><input name="nume" type="text" class="white_left" size="20" onKeyDown="return onPressEnter(event)">
                                      </font></td>
                                  </tr>
                                  <tr>
                                    <td width="43%"><span class="style29"><font face="Arial" size="2">Parola:</font></span></td>
                                    <td width="57%">
               <p align="center"><font size="2" face="Arial"><input name="parola" type="password" class="white_left" size="20"onKeyDown="return onPressEnter(event)">
                                      </font></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2">
									</td>
                                  </tr>
                                  <tr>
                                    <td height="41" colspan="2" bgcolor="#9966FF">
                                      <div align="center">
                                        <input name="button23" type=button onClick="onLogare()" value="Logare">
                                        </a>
                                        </div>
                                    </div></td>
                                  </tr>
                                </table>                              </td>
                              <td width="34%"></td>
                            </tr>
                          </table>                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
			  <input type='hidden' name='date_generale_utilizator'>
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td width="34%"></td>
  </tr>
</table>
</body>

</html>

<script type="text/javascript">

function onLogare()

{

   var thisForm = document.forms['form_logare'];
 



if(thisForm.nume.value.length == 0) {

alert('Introduceti numele (user)');

thisForm.nume.focus();

return;

}





if(thisForm.parola.value.length == 0) {

alert('Introduceti parola');

thisForm.parola.focus();

return;

}

   

   

   thisForm.date_generale_utilizator.value="logare";

   thisForm.submit();

}



function onPressEnter(event)

{

 var thisForm = document.forms['form_logare'];

 var btn = thisForm.Image5;



 if (document.all){



  if (event.keyCode == 13) {

   	event.returnValue=false;

   	event.cancel = true;

   	btn.click();

	return false;

  }

 }

 else if (document.getElementById){

  if (event.which == 13){

   	event.returnValue=false;

   	event.cancel = true;

   	btn.click();

	return false;

  }

 }

 else if(document.layers){

  if(event.which == 13) {

   	event.returnValue=false;

   	event.cancel = true;

   	btn.click();

	return false;

  }

 }

return true;

}
</script>
<file_sep><?php 
session_start (); 
ob_start(); 

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false); 
header("Cache-Control: private");
header("Pragma: no-cache"); // HTTP/1.0 

if($_SESSION['user_id'] == null)
header( "Location: ../log_membri.php");
/*
  $strSQL = "select tip_cont from user_account";
  $strSQL .= " where user_id = ".$_SESSION['user_id'];
  $res = mysql_query($strSQL);
  
  if($res == 0)
header( "Location: ../user/user_account_1.php");
*/
?>
<file_sep>﻿<?php

/**
 * index.php
 *
 * @version $1$
 * @copyright Temuraru.ro 2012
 * @author <NAME>
 */

$dir = dirname(__FILE__);
$GLOBALS['ROOT_DIR'] = realpath($dir . '/..'); // "/home/temuraru/public_html"
define(APPLICATION_PATH, realpath($dir).'/');
set_include_path( $GLOBALS['ROOT_DIR'] . '/library' . PATH_SEPARATOR . APPLICATION_PATH . '/../library' . PATH_SEPARATOR . get_include_path() );
//  var_dump(APPLICATION_PATH, realpath($dir));die;
date_default_timezone_set('Europe/Bucharest');
error_reporting(E_ALL ^ E_NOTICE);
ini_set("display_errors", "On");
error_reporting(E_ALL);ini_set("display_errors", "On");
if(!empty($_GET['debug']) || $_SERVER['REMOTE_ADDR'] == '192.168.127.12'){
    ini_set('display_errors','On');error_reporting( E_ALL );
}
//var_dump($GLOBALS);die;
require(APPLICATION_PATH . 'library/Smarty/Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = APPLICATION_PATH . 'templates/';
$smarty->compile_dir = APPLICATION_PATH . 'templates_c/';
include_once(APPLICATION_PATH . 'include/functions.php');
include_once(APPLICATION_PATH . 'include/Array.php');

$ini_array = parse_ini_file(APPLICATION_PATH . "config/config.ini", true);
$site = $ini_array;
//print_r($ini_array);die;
//$configObject = simplexml_load_file(APPLICATION_PATH . 'public/xml/site.xml');
//$site = array();
//convertXmlObjToArr($configObject, $site);
//var_dump($site);
$allowedPages = array('index', 'despre-noi', 'servicii', 'info', 'guestbook', 'contact', 'index2');
$template = $allowedPages[0];
$request = substr($_SERVER['REQUEST_URI'], 1);
if (in_array($request, $allowedPages)){
    $template = $request;

//    var_dump($request, in_array($request, $allowedPages));        die;
    switch ($template){
        case 'galerie':
            break;
        case 'contact':
            //var_dump($site['contact']);die;
            break;
        default:
            break;
    }
    //var_dump($configObject);die;
}
//var_dump($site, $template);die;
$smarty->assign('template', $template);
$smarty->assign('site', $site);
$smarty->assign('siteMenu', processMenu($site));

$smarty->assign('template', $template);
$smarty->display('index.html');

function processMenu($site = array()) {
    $menu = array();
    foreach ($site['general'] as $template => $item) {
        $parts = explode('|', $item);
        $item = array(
            'title' => $parts[0],
            'href' => $parts[1]
        );
        $menu[$template] = $item;
    }
    return $menu;
}

<file_sep><?php include("dbscript/check_pass_admin.php"); ?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Magic Weddings  ||  Cartea de oaspeti - Lista de Comentarii</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///D|/_Works/_tipo_4/tipo4/animate.js">
</script>
<base target="middle">
<link href="file:///D|/_Works/_tipo_4/tipo4/cases.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style14 {color: #000099}
body {
	background-image: url(back_page.jpg);
}
.style21 {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 12px;}
.style36 {color: #FFFFFF}
.style38 {
	color: #FFCCFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style40 {color: #FFCCFF}
a:link {
	color: #FFCCFF;
}
a:visited {
	color: #FF66FF;
}
a:hover {
	color: #FFFFFF;
}
a:active {
	color: #FF66FF;
}
-->
</style>
</head>


<?php
include("dbscript/connect.php");
include("dbscript/db_utils.php");
include("dbscript/data_page.php");

  //STERGERE
   
  if(isset($_POST['rowDel'])) {
     $strSQL = "DELETE FROM guest_book WHERE guest_id=".$_POST['rowDel'];
     mysql_query($strSQL);
  }

	$dbGuest = new CTableReader('guest_book');
	$qryLista = " select * from guest_book order by guest_id desc";
  	$dbGuest->setSQL($qryLista);
  	$dbGuest->exec();



?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%"></td>
    <td width="33%">
      <table border="0" width="500" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td>                  <p align="center"><font size="5" face="Verdana" color="#FF99FF">Magic Weddings - Lista Comentarii </font>                
                  <p align="center"><font size="5" face="Verdana" color="#FF99FF"><br>
                  </font></b></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td width="100%">
            <form method="POST" action="lista_comentarii.php" name="lista_carte_oaspeti">
              <!--webbot bot="SaveResults" startspan
              U-File="_private/form_results.txt" S-Format="TEXT/CSV"
              S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
              <!--webbot
              bot="SaveResults" endspan i-checksum="43374" -->
              <table border="0" width="700" cellspacing="0" cellpadding="0">
                <tr>
                  <td colspan="2">
                    <div align="center"><a href="javascript:window.close();">
                      </a>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><div align="center"><a href="javascript:window.close();"></a>
                            <table width="848" border="1" cellpadding="1" cellspacing="1" bordercolorlight="#FFFFFF" bordercolordark="#0099CC" bgcolor="#FFCCFF">
                              <tr>
                     <td width="39" height="32" align="center" bgcolor="#660066" class="style21"><span class="style7"><span class="style21">ID</span></span></td>
                     <td width="80" align="center" bgcolor="#660066" class="style21"><span class="style36">Data</span></td>
                     <td width="178" align="center" bgcolor="#660066" class="style21">User</td>
                     <td width="123" align="center" bgcolor="#660066" class="style21">e-mail</td>
                     <td width="342" align="center" bgcolor="#660066" class="style21"><span class="style7"><span class="style21">Comentariu</span></span></td>
                     <td width="53" align="center" bgcolor="#660066" class="style21"><div align="center" class="style21">Sterge</div></td>
                              </tr>
                              <?php
						 $iLinie=0;
								  	  
									  while($dbGuest->getValue('guest_id',FALSE)) {
								  	    echo "<tr id='trid".$iLinie."'>";
										echo " <td width='' bgcolor=";
										if($iLinie %2) echo "'FFCCFF'>";
										else           echo "'FFF0FF'>";
										echo "<p align='center'><font size='2' face='Arial' color='#560C72'>";
										
										echo $dbGuest->getValue('guest_id', FALSE);
										echo "</font>";
										echo "</td>";

										
										echo " <td width='' bgcolor=";
										if($iLinie %2) echo "'FFCCFF'>";
										else           echo "'FFF0FF'>";
										echo "<p align='center'><font size='2' face='Arial' color='#560C72'>";
										echo ymd_to_dmy($dbGuest->getValue('data', FALSE));
										echo "</font>";
										echo "</td>";
										
										echo " <td width='' bgcolor=";
										if($iLinie %2) echo "'FFCCFF'>";
										else           echo "'FFF0FF'>";
										echo "<p align='center'><font size='2' face='Arial' color='#560C72'>";
										echo $dbGuest->getValue('nume', FALSE);
										echo "</font>";
										echo "</td>";
																			
										echo " <td width='' bgcolor=";
										if($iLinie %2) echo "'FFCCFF'>";
										else           echo "'FFF0FF'>";
										echo "<p align='center'><font size='2' face='Arial' color='#560C72'>";
										echo $dbGuest->getValue('mail', FALSE);
										echo "</font>";
										echo "</td>";
										
										echo " <td width='' bgcolor=";
										if($iLinie %2) echo "'FFCCFF'>";
										else           echo "'FFF0FF'>";
										echo "<p align='center'><font size='2' face='Arial' color='#560C72'>";
										echo $dbGuest->getValue('mesaj', FALSE);
										echo "</font>";
										echo "</td>";

																																
							
							echo " <td width='' bgcolor=";
							if($iLinie %2) echo "'FFCCFF'>";
							else           echo "'FFF0FF'>";
							$rowId = $dbGuest->getValue('guest_id', FALSE);
							echo "<p align='center'><img src='delete_1.png' onClick='return onDelete($rowId)' border='0'>";
							echo "</td>";
							echo "</font></font></tr>";
														
							$iLinie++;
							$dbGuest->next();
							
							}

								  ?>
                            </table>
                          </div>
                          <div align="right"><a href="javascript:window.close();"></a></div></td>
                        </tr>
                      </table>
                    </div></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="2"><p align="center">                      <span class="style14"><a href="#" target="_self" onMouseOver="MM_swapImage('Image7','','file:///D|/_Works/_tipo_4/tipo4/oferta/img/lista_calculatii_2.jpg',1)" onMouseOut="MM_swapImgRestore()"></a>
                    </span></p>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>
                          <input name="button23" type=button onClick="javascript:top.window.close();" value="Inchide Pagina">
                        </a></td>
                        <td>&nbsp;</td>
                        <td><div align="right"><a href="javascript:window.close();"></a></div></td>
                      </tr>
                    </table>                    
                    <p align="center" class="style38"><span class="style40"><a href="../index.html" target="_self">homepage</a> | <a href="carte_oaspeti.php" target="_self">guestbook </a></span></p></td>
                </tr>
              </table>
              <div align="center">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="100%"></td>
                  </tr>
                </table>
                
				
				
				
				
				<div align="center"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','file:///D|/_Works/_tipo_4/tipo4/images/ajutor2.jpg',1)"><br>
				</a></div>
              </div>
                <span class="style14"> </span>
                </div>
				<input type="hidden" name="rowDel">
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td width="34%"></td>
  </tr>
</table>
</body>

</html>

<script language="JavaScript" fptype="dynamicanimation">

function onDelete(rowId)
{
  var thisForm = document.forms['lista_carte_oaspeti'];
  
   if(confirm('Sunteti sigur ca doriti sa stergeti?')) {
      thisForm.rowDel.value=rowId;
   thisForm.target = "_self";
   
   thisForm.submit();
   }
}

</script>
