Ejemplo n.º 1
0
function update_item($item_id)
{
    set_lock_state(True, $item_id);
    $item = get_item($item_id);
    $item['fields']['description'] .= test_results();
    put_item($item_id, $item);
    set_lock_state(False, $item_id);
}
Ejemplo n.º 2
0
?>
					<label class="label">sector</label><select name='ApSector' class="standard" >
						<option value=''> - </option>
						<?php 
for ($i = 1; $i <= 6; $i++) {
    echo "<option value='" . $i . "'";
    if ($apartament->Sector == "{$i}") {
        echo " selected";
    }
    echo ">Sector " . $i . "</option>";
}
?>
					</select>
					
					<?php 
echo put_item("punct reper", "PunctReper", $apartament->PunctReper, "Ap", "");
?>
				</fieldset>
				<script type="text/javascript">
					hide("divStradaHint");
					hide("divSubzonaHint");
				</script>
			</div>
			
		</div>
		
		<div id="dotari" style="overflow:auto; background-color: rgb(255,248,226); ">
			<div style="display: inline-block; width:165px; float: left;">
				<div>
			<?php 
//Dotari
Ejemplo n.º 3
0
?>
			</fieldset>
		</div>
		<div >
			<fieldset >
				<legend>localizare</legend>
				<?php 
echo put_item($cartier->Denumire, "Zona");
echo put_item($subzona->Denumire, "Subzona");
?>
					<label class="label" style="vertical-align: top;">adresa</label><textarea  style="width:175px;min-height:55px;"><?php 
echo $strada->Denumire . ", Nr. " . $apartament->Numar . ", Bl. " . $apartament->Bloc . ", Sc. " . $apartament->Scara . ", Ap. " . $apartament->Apartament . ", Interfon " . $apartament->Interfon;
?>
</textarea>
				<?php 
//echo put_item($strada->Denumire.", Nr. ".$apartament->Numar.", Bl. ".$apartament->Bloc.", Sc. ".$apartament->Scara.", Ap. ".$apartament->Apartament.", Interfon ".$apartament->Interfon,"Adresa");
echo put_item($apartament->PunctReper, "Punct reper");
?>
				<label class="label">Coordonate</label>
				<?php 
echo "Lat: " . number_format($apartament->Lat, 6) . ", Lng: " . number_format($apartament->Lng, 6);
?>
			</fieldset>
			<div id="map_canvas" class="ui-widget-header ui-corner-all" style="width:317px; height:200px; margin:3px;"></div>
		</div>
	</div>
	</div>
	<div class="ui-widget-header ui-corner-all" style="padding: 2px;margin: 2px;min-height: 20px;"></div>
</form>
</body>
</html>
Ejemplo n.º 4
0
?>
			
		</table>
	</div>
	<div id="Administrativ" class="view" >
		<h3>Administrativ</h3>
		<table>
			<?php 
echo put_item($client->Detalii, "Detalii");
?>
			<?php 
echo put_item($client->DataActualizare, "Data actualizarii");
?>
			<?php 
$agent = User::find_by_id($client->idUtilizator);
echo put_item($agent->full_name(), "Agent");
?>
		</table>
	</div>
	<div id="Butoane" class="butoane" >
		<table cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td align="left">
					<input type="button" id="cerere" value="Adauga cerere" onclick='onClickB(3,"<?php 
echo $client->id;
?>
")'/>
					<input type="button" id="oferta" value="Adauga oferta" onclick='onClickB(2,"<?php 
echo $client->id;
?>
")'/>
Ejemplo n.º 5
0
?>
					<?php 
echo put_item("interfon", "Interfon", $apartament->Interfon, "Ap", "xaxbxcxs");
?>
					<label class="label">sector</label><select name='ApSector' class="standard" >
						<option value=''> - </option>
						<?php 
for ($i = 1; $i <= 6; $i++) {
    echo "<option value='" . $i . "'";
    echo ">Sector " . $i . "</option>";
}
?>
					</select>
					
					<?php 
echo put_item("punct reper", "PunctReper", "", "Ap", "");
?>
				</fieldset>
				<script type="text/javascript">
					hide("divStradaHint");
					hide("divSubzonaHint");
				</script>
			</div>
			
		</div>
		
		<div id="dotari" style="overflow:auto; background-color: rgb(255,248,226); ">
			<div style="display: inline-block; width:165px; float: left">
				<div>
			<?php 
//Dotari