<style> form { } form em { color:#FF0000;} fieldset {border:0; margin:0; padding:0;} fieldset legend{ padding:0 0 0 10px;} .fieldgrp{clear:both; width:100%; margin-bottom:.5em; overflow:hidden;} .fieldgrp:after{content:"."; display:block; clear:both; visibility:hidden; line-height:0; height:0; } .fieldgrp label{font-weight:bold; width:200px; clear:both; padding:0 10px 0 0;line-height:22px;_padding-top:3px; float:left; display:block; font-size:108%;} .fieldgrp label span{font-weight:normal;} .fieldgrp label abbr{color:#4B911C; font-size:120%; vertical-align:middle;} .field {float:left; padding:0 10px 0 0;line-height:22px;_padding-top:3px;} .field .longfield{width:215px;} .field .longfield-select{width:220px;} .field .smallfield{width:95px;} .field .medfield{width:110px;} .field input, .field select{ font-size:110%; margin:2px 0; } .field input[type="radio"] { margin:0 5px 0 5px; } div.submit{ margin-left:200px; padding-left:0px; margin-top:1em; } div.submit p.submit-button{margin-top:0;} div.submit p.details{font-size:85%;color:#666;margin:0;} div.submit p.required-note{margin-top:1em;} div.submit p.required-note span{color:#4B911C;_color:#666;font-size:170%;vertical-align:top;} input.submit {border:none;} </style> <div id="survForm"> <?php if ( is_array($this->source) && count($this->source)==0 ) { ?> Vous n'avez pas les droits nécessaire pour mettre en surveillance. <script> $('#dialogsurv').dialog({ buttons: [ { text: "Quitter", click: function() { $(this).dialog("close"); } } ] }); </script> <?php } else {?> <form id="frmSurv" name="frmSurv" action="<?=$this->url(array( 'controller' => 'surveillance', 'action' => 'set'), null, true)?>" method="post"> <input name="siret" type="hidden" value="<?=$this->siret?>"/> <?php if (is_array($this->source)) { ?> <div class="fieldgrp"> <label>Types</label> <div class="field"> <?php foreach($this->source as $s) { ?> <input type="checkbox" name="source[]" value="<?=$s['id']?>"<?=$s['checked']?>/> <?=$s['txt']?><br/> <?php } ?> </div> </div> <?php } else { ?> <input name="source" type="hidden" value="<?=$this->source?>"/> <?php } ?> <div class="fieldgrp"> <label class="StyleInfoLib">Votre référence</label> <div class="field"> <input class="longfield" name="ref" type="text" value="<?=$this->ref?>" size="10"/></div> </div> <?php if (!is_array($this->source) && $this->source=='score') { ?> <div class="fieldgrp"> <label class="StyleInfoLib">Votre encours (€)</label> <div class="field"> <input class="longfield" name="encours" type="text" value="<?=$this->encours?>" size="10"/></div> </div> <?php } ?> <div class="fieldgrp"> <label class="StyleInfoLib">Adresse email du destinataire</label> <div class="field"> <input class="longfield" name="email" type="text" value="<?=$this->email?>" size="20"/> </div> </div> </form> <?php } ?> </div>