Example #1
1
 public function GetUser($config, $id)
 {
     $rows = array();
     switch ($config['adapter']) {
         case 'Mysql':
             include '../modules/Application/src/Application/Model/Mysql/connect.php';
             include '../modules/Application/src/Application/Model/Mysql/Select.php';
             $link = Connect($config['slave']);
             $query = "SELECT * FROM user WHERE iduser=" . $id;
             //             echo $query;
             $rows = Select($link, $query);
             break;
         case 'Txt':
             include '../modules/Application/src/Application/Model/Txt/SelectOne.php';
             $rows = SelectOne($config['userfilename'], $id);
             break;
     }
     return $rows[0];
 }
Example #2
1
 public function GetUser($config, $id)
 {
     switch ($config['adapter']) {
         case 'Mysql':
             include "../modules/Application/src/Application/Model/Mysql/Connect.php";
             include "../modules/Application/src/Application/Model/Mysql/Select.php";
             $master = $config['dbmaster'];
             $slave = $config['dbslave'];
             $link = Connect($master);
             $query = "SELECT * FROM user WHERE iduser='******'";
             $data = Select($query, $link);
             $data = $data[0];
             break;
         case 'Txt':
             include "../modules/Application/src/Application/Model/Txt/SelectOne.php";
             $data = SelectOne($config['filename'], $id);
             break;
     }
     return $data;
 }
Example #3
0
function GetUsers($config)
{
    $rows = array();
    switch ($config['adapter']) {
        case 'Mysql':
            include '../modules/Application/src/Application/Model/Mysql/connect.php';
            include '../modules/Application/src/Application/Model/Mysql/Select.php';
            $link = Connect($config['slave']);
            $query = "SELECT * FROM user";
            $rows = Select($link, $query);
            break;
        case 'Txt':
            include '../modules/Application/src/Application/Model/Txt/Select.php';
            $rows = Select($config['userfilename']);
            break;
    }
    return $rows;
}
Example #4
0
function GetUsers($config)
{
    switch ($config['adapter']) {
        case 'Mysql':
            include "../modules/Application/src/Application/Model/Mysql/Connect.php";
            include "../modules/Application/src/Application/Model/Mysql/Select.php";
            $master = $config['dbmaster'];
            $slave = $config['dbslave'];
            $link = Connect($master);
            $query = "SELECT * FROM user";
            $data = Select($query, $link);
            break;
        case 'Txt':
            include "../modules/Application/src/Application/Model/Txt/Select.php";
            $data = Select($config['filename']);
            break;
    }
    return $data;
}
Example #5
0
    			<div class="width100">
    				<div class=" width50 ">
	    				<label  class="lib"  for="Incident_Impact_stat_typologiegts"> Typologie GTS</label> 
		    			<select id="stat_typologiegts" name="stat_typologiegts">
		    			<?php 
Select('stat_typologiegts', $STATTYPOGTS);
?>
		    			</select>
	    			</div>
	    			
	    			<div class=" width50 right">
	    				<label  class="lib"  for="statPowerprod"> Powerprod</label> 
		    			<select id="statPowerprod" name="statPowerprod" >
		    			<?php 
Select('statPowerprod', $STATPOWERPROD);
?>
		    			</select>
	    			</div>
	    			<div class=" width50">
	    				<label  class="lib"> Legacy</label> 
		    			<div style=" font-size:12px;">
						<?php 
Radio('statLegacy', $STATLEGACY);
?>
						</div>
	    			</div>

	    			    			
	    		
	    		<div class="width100">
Example #6
0
function CellulePres2($titre, $numero, $champs, $valeur, $participation, $lien, $tri, $entete, $verrou, $condition, $espace)
{
    $presences_liste = array('', 'P', 'A', 'E');
    if ($condition == 1) {
        if ($entete == 0) {
            CelluIni('', '', '', $espace);
            Select($champs . '1[' . $numero . ']', $valeur, $presences_liste, $presences_liste, 4, 0, 0, '', $verrou, $espace . '    ');
            INPUThid($champs . '2[' . $numero . ']', $participation);
            INPUThid($champs . '3[' . $numero . ']', $titre);
            CelluFin($espace);
        } else {
            CelluleEntete($titre, $lien, $tri, $espace);
        }
    }
    return $espace;
}
Example #7
0
File: add.php Project: anisinfo/osi
		    	</div>
	  		
	  			<div class="width32 mr_9 ">
	  				<label  class="lib" for="incidentserviceacteur"> Service Acteur</label>
	  				<select name="incidentserviceacteur" id="incidentserviceacteur">
	  					<?php 
Select('incidentserviceacteur', $SERVICEACTEUR);
?>
		     
		        	</select>
	  			</div>
	  			<div class="width32 right">
  					<label class="lib" for="Incident_suivi">Suivi *</label>
  					<select id="Incident_suivi" name="Incident_suivi" required>
					<?php 
Select('Incident_suivi', $SUIVI);
?>
					</select>
  				</div>
	  		</div>

	  		<div class=" width100">
	  			<div class=" width50">
	  				<label  class="lib" for="incidentdatecreci"> Date de publication</label> 
	  				<input type="text"  name="incidentdatecreci" id="incidentdatecreci" value="<?php 
getVar('incidentdatecreci');
?>
" >
	  			</div>

	  			<div class=" width50 right">
Example #8
0
    $str1 .= '<img>';
    $str1 .= 'http://ceit.aut.ac.ir/~bakhshis/IE/F94-HW3/home/img/special_img.svg';
    $str1 .= '</img>';
    $str1 .= '<title>بازگشت به دانشگاه</title>';
    $str1 .= '<announcement>تمدید می شود</announcement>';
    $str1 .= '<slogan>فقط در دانشگاه صنعتی امیرکبیر</slogan>';
    $str1 .= '<button backcolor="#e33" hover="#e33" color="#fff">';
    $str1 .= '<toptext>تا پايان ترم زمستان</toptext>';
    $str1 .= '<bottomtext>فقط برای دانشجویان درس مهندسی اینترنت</bottomtext>';
    $str1 .= '</button>';
    $str1 .= '<pendulum backcolor="#7f7" hover="#afa" color="#fff">';
    $str1 .= '<toptext>تا</toptext>';
    $str1 .= '<middletext>۷۰٪</middletext>';
    $str1 .= '<bottomtext>تخفیف</bottomtext>';
    $str1 .= '</pendulum>';
    $str1 .= '</title>';
    $str1 .= '<items>';
    $rows = Select("*", $GLOBALS['tbl_product'], null, null);
    $rows->setFetchMode(PDO::FETCH_CLASS, 'product');
    $i = 12;
    while (($product = $rows->fetch()) && $i > 0) {
        // echo var_dump($Comment);
        $str1 .= $product->creatXMLHome();
        $i--;
        // echo $test;
    }
    // $str1 .= $test;
    $str1 .= '</items>';
    $str1 .= '</home>';
    echo $str1;
}
Example #9
0
 function creatXMLtest()
 {
     global $str;
     $rows = Select("*", $GLOBALS['tbl_product'], "pro_iD = ?", array(1));
     $rows->setFetchMode(PDO::FETCH_CLASS, "product");
     if ($row = $rows->fetch()) {
         $main = new SimpleXMLElement('<main/>');
         $header = $main->addChild('header');
         $child = $header->addChild('child');
         $child->addChild('text', "کالای دیجیتال");
         $child = $header->addChild('child');
         $child->addChild('text', "لوازم خانگی");
         $child = $header->addChild('child');
         $child->addChild('text', "زیبایی و سلامت");
         $child = $header->addChild('child');
         $child->addChild('text', "فرهنگ و هنر");
         $child = $header->addChild('child');
         $child->addChild('text', "ورزش و سرگرمی");
         HHeader('Content-type: text/xml');
         print $main->asXML();
     }
 }
function FormSpecial($titre, $champs, $valeur, $droitmin, $lien, $espace)
{
    // Formulaire : coordonnées
    global $specialites_liste;
    $verrou = VerifieDroit($droitmin);
    TRdebut($titre, $espace);
    Select($champs, $valeur, '', $specialites_liste, 9, 0, '', '', $verrou, $espace . '    ');
    TRfin($espace);
    return GereRetours($lien, $lien . '&' . $champs . '=' . $valeur, $espace);
}
Example #11
0
	    		<div class="width100">
	    			<div class=" width50 mr_10">
	    				<label  class="lib"  for="Incident_Impact_sla"> SLA</label> 
		    			<select id="Incident_Impact_sla" name="Incident_Impact_sla" required>
		    			<?php 
Select('Incident_Impact_sla', $SLA);
?>
		    			</select>
	    			</div>

	    			<div class=" width50">
	    				<label  class="lib"  for="Incident_Impact_criticite"> Criticité</label> 
		    			<select id="Incident_Impact_criticite" name="Incident_Impact_criticite">
		    			<?php 
Select('Incident_Impact_criticite', $CRITICITE);
?>
		    			</select>
	    			</div>	    			
	    		</div>
    		</div>

    		<div class="width100">
	    		
	                <label class="lib" for="Incident_Impact_description">Description de l'impact *</label>
	                <textarea id="Incident_Impact_description" name="Incident_Impact_description" required maxlength="4000"><?php 
getVar('Incident_Impact_description');
?>
</textarea>
	    		
	    	</div>
Example #12
0
function StickyInputFormat($field_name, $field_value, $form_control)
{
    $content = '';
    $class = '';
    if ($form_control) {
        $class = 'form-control';
    }
    include 'inc/drop-down.php';
    switch ($field_name) {
        case 'additional_instructions':
        case 'estimate':
        case 'stone_information':
            $content .= '<textarea name="' . $field_name . '" rows="10" class="' . $class . '"  id="' . $field_name . '">' . $field_value . '</textarea>';
            break;
        case 'weight':
        case 'max_price':
        case 'price':
        case 'cost':
        case 'inv_price':
            $content .= '<input type="text"  name="' . $field_name . '" value="' . number_format($field_value, 2, '.', ',') . '" class="' . $class . '" id="' . $field_name . '">';
            break;
        case 'finger_size':
        case 'uk_cust':
        case 'job_status':
        case 'job_location':
        case 'inv_desc':
        case 'inv_metal':
            $content .= '<select name="' . $field_name . '" class="' . $class . '" id="' . $field_name . '">' . Select($field_name, $field_value, ${$field_name}) . '</select>';
            break;
        case 'repair_type':
        case 'items_to_return':
        case 'wax_cad_est_req':
            $content .= '<select multiple size=' . count(${$field_name}) . ' name="' . $field_name . '[]" class="' . $class . '" id="' . $field_name . '">' . MultiSelect(${$field_name}, $field_value) . '</select>';
            break;
        case 'due_back_date':
        case 'customer_due_date':
        case 'chase_job':
        case 'date_sent_from_uk':
        case 'date_sent_from_thailand':
        case 'date_received_back_uk':
        case 'date_sent':
        case 'date_received':
            $content .= '<input type="text" name="' . $field_name . '" class="datepicker ' . $class . '" id="' . $field_name . '" value = "' . FormatDate($field_name, $field_value) . '">';
            break;
        case 'add_parcel':
        case 'add_t_parcel':
            $content .= '<select id="' . $field_name . '" class="' . $class . '" name="' . $field_name . '"><option value="" ></option>' . ParcelDropdown($field_name, $field_value) . '</select>';
            break;
        default:
            $content .= "<input type='text' value='{$field_value}' id='{$field_name}' name='{$field_name}' class='{$class}' >";
    }
    return $content;
}
Example #13
0
function getObjectsToSend()
{
    $query = "select id,\n\t\t\t\t\tphpbase64 \n\t\t\t\t\tfrom historico \n\t\t\t\t\twhere data_geracao is not null\n\t\t\t\t\tand data_revisao is not null\n\t\t\t\t\tand data_envio is null ";
    $rows = Select($query);
    return $rows;
}
Example #14
0
  <?echo '<th>KAT.N</th>';?>
  <?echo '<th>ФАСОВКА</th>';?>
  <?if(empty($val["cas"])){}else{echo '<th>CAS</th>';}?>
  <?if(empty($val["pictures"])){}else{echo '<th>КАРТИНКА</th>';}?>
  <?if(empty($val["tds"])){}else{echo '<th>TDS</th>';}?>
  <?echo '<th>ПРОИЗВОДИТЕЛЬ</th>';?>
  <?echo '<th>ЦЕНА ДЛЯ ПРОДАЖИ</th>';?>
  <?echo '<th>ВАЛЮТА</th>';?>
  <th>ЦЕНА ДЛЯ ПРОДАЖИ БЕЗ ЦЕНЫ</th>
  <?echo '<th>ВАЛЮТА</th>';?>
  <?if(empty($val["usl_chran"])){}else{echo '<th>УСЛОВИЯ ХРАНЕНИЯ</th>';}?>
  <?if(empty($val["web_addres"])){}else{echo '<th>WEB АДРЕС</th>';}?>
  </tr>

  <?
  $s = Select();
//print_r($s);
foreach($s as $key => $val){
  ?>
    <tr>
      <?if(empty($val["XML_ID"])){}else{echo '<td>'.$val["XML_ID"]. '</td>';}?>
      <?if(empty($val["NAME"])){}else{echo '<td>'. $val["NAME"] . '</td>';}?>
      <?if(empty($val["ACTIVE"])){}else{echo '<td>'. $val["ACTIVE"] . '</td>';}?>
      <?if(empty($val["DETAIL_TEXT"])){}else{echo '<td>'. $val["DETAIL_TEXT"] . '</td>';}?>
      <?if(empty($val["ARTNUMBER"])){}else{echo '<td>'. $val["ARTNUMBER"] . '</td>';}?>
      <?if(empty($val["SIZE"])){}else{echo '<td>'. $val["SIZE"] . '</td>';}?>
      <?if(empty($val["cas"])){}else{echo '<td>'. $val["cas"] . '</td>';}?>
      <?if(empty($val["pictures"])){}else{echo '<td>'. $val["pictures"] . '</td>';}?>
      <?if(empty($val["tds"])){}else{echo '<td>'. $val["tds"] . '</td>';}?>
      <?if(empty($val["MANUFACTOR"])){}else{echo '<td>'. $val["MANUFACTOR"] . '</td>';}?>
      <?if(empty($val["PRICE_1"])){}else{echo '<td>'. $val["PRICE_1"] . '</td>';}?>
Example #15
0
			<legend>Pattern Count</legend>
			
			<?php 
//print(ReadOnly('ID'));
print Select('PatternID', $oPatterns, 'ID', 'Name');
print Numeric('Count');
print Numeric('CountOrder');
print Select('Motion', $oMotions, 'ID', 'Name');
//print(Select('Note', $oNotes, 'ID', 'Description'));
print Select('BodyMovementID', $oMovements, 'ID', 'Name');
print Select('EyesTo', $aDirection, '', '');
print Select('EyesDiagramDirection', $aDiagramDirection, '', '');
print Text('FeetInMotion');
print Select('LegLR', $aLR, '', '');
print Select('LegSection', $aSection, '', '');
print Select('LegTechniqueID', $oTechniques, 'ID', 'Name');
print Select('LegTo', $aDirection, '', '');
print Select('LegDiagramDirection', $aDiagramDirection, '', '');
print Select('Facing', $aFacing, '', '');
print Select('ArmLR', $aLR, '', '');
print Select('ArmSection', $aSection, '', '');
print Select('ArmTechniqueID', $oTechniques, 'ID', 'Name');
print Select('ArmTo', $aDirection, '', '');
print Select('ArmDiagramDirection', $aDiagramDirection, '', '');
print TextArea('Encyclopedia');
print TextArea('Littleton');
?>
		</fieldset -->
	</form>
</body>
</html>