[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <table width="100%" cellpadding="5"> 2 <tr> 3 <td class="c0"><label for="name"><?php echo get_string('fieldname', 'data'); ?></label></td> 4 <td class="c1"><input class="fieldname" type="text" name="name" id="name" value="<?php p($this->field->name); ?>" /></td> 5 </tr> 6 <tr> 7 <td class="c0"><label for="description"><?php echo get_string('fielddescription', 'data'); ?></label></td> 8 <td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php p ($this->field->description);?>" /></td> 9 </tr> 10 <tr> 11 <td class="c0"><label for="param1"><?php echo get_string('latlonglinkservicesdisplayed', 'data'); ?></label></td> 12 <td class="c1"> 13 <select class="linkservicesdisplayed" name="param1[]" id="param1" multiple="multiple" size="<?php p(sizeof($this->linkoutservices)); ?>"> 14 <?php 15 $serviceschosen = explode(',', htmlspecialchars($this->field->param1)); 16 foreach($this->linkoutservices as $servicename=>$serviceurl) { 17 $servicename = htmlspecialchars($servicename); 18 echo "\n <option" . (array_search($servicename, $serviceschosen)===false ? '' : ' selected="selected"') . ">$servicename</option>"; 19 } 20 ?> 21 </select> 22 </td> 23 </tr> 24 <tr> 25 <td class="c0"><label for="param2"><?php echo get_string('latlongkmllabelling', 'data'); ?></label></td> 26 <td class="c1"> 27 <select class="kmllabelling" name="param2" id="param2"> 28 <option value="-1"<?php if($this->field->param2==-1) echo ' selected="selected"' ?>><?php echo get_string('entry', 'data') ?> #</option> 29 <option value="-2"<?php if($this->field->param2==-2) echo ' selected="selected"' ?>><?php echo get_string('latitude', 'data').'/'.get_string('longitude', 'data') ?></option> 30 <?php 31 // Fetch all "suitable" other fields that exist for this database 32 $textfields = $DB->get_records('data_fields', array('dataid'=>$this->data->id, 'type'=>'text')); 33 if(sizeof($textfields)>0) { 34 echo '<optgroup label="'.get_string('latlongotherfields', 'data').':">'; 35 foreach($textfields as $textfield) { 36 echo "<option value='$textfield->id'".($this->field->param2==$textfield->id ? ' selected="selected"' : '').">$textfield->name</option>"; 37 } 38 echo '</optgroup>'; 39 } 40 ?> 41 </select> 42 </td> 43 </tr> 44 <tr> 45 <td class="c0"> </td> 46 <td class="c1"><?php if($this->field->id) {echo "<a href='./field/latlong/kml.php?d=".$this->data->id."&fieldid=".$this->field->id."'>" . get_string('latlongdownloadallhint', 'data') . "</a>"; } ?></td> 47 </tr> 48 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |