Esempio n. 1
0
</label><?php 
        # Autosave display
        if ($edit_autosave || $ctrls_to_save) {
            ?>
<div class="AutoSaveStatus" id="AutoSaveStatusRelated" style="display:none;"></div><?php 
        }
        ?>

        <textarea class="stdwidth" rows=3 cols=50 name="related" id="related"<?php 
        if ($edit_autosave) {
            ?>
onChange="AutoSave('Related');"<?php 
        }
        ?>
><?php 
        echo getval("resetform", "") != "" ? "" : join(", ", get_related_resources($ref));
        ?>
</textarea>

        <div class="clearerleft"> </div>
        </div><?php 
    }
}
if ($multiple && !$disable_geocoding) {
    # Multiple method of changing location.
    ?>
	</div><h2 <?php 
    echo $collapsible_sections ? " class=\"CollapsibleSectionHead\"" : "";
    ?>
 id="location_title"><?php 
    echo $lang["location-title"];
Esempio n. 2
0
    # Related Resources
    if ($enable_related_resources && ($multiple || $ref>0)) # Not when uploading
        {
        if ($multiple) { ?><div><input name="editthis_related" id="editthis_related" value="yes" type="checkbox" onClick="var q=document.getElementById('question_related');if (q.style.display!='block') {q.style.display='block';} else {q.style.display='none';}">&nbsp;<label for="editthis<?php echo $n?>"><?php echo $lang["relatedresources"]?></label></div><?php } ?>

        <div class="Question" id="question_related" <?php if ($multiple) {?>style="display:none;"<?php } ?>>
        <label for="related"><?php echo $lang["relatedresources"]?></label><?php

        # Autosave display
        if ($edit_autosave) { ?><div class="AutoSaveStatus" id="AutoSaveStatusRelated" style="display:none;"></div><?php } ?>

        <textarea class="stdwidth" rows=3 cols=50 name="related" id="related"<?php
        if ($edit_autosave) {?>onChange="AutoSave('Related');"<?php } ?>><?php

        echo ((getval("resetform","")!="")?"":join(", ",get_related_resources($ref)))?></textarea>

        <div class="clearerleft"> </div>
        </div><?php
        } 
    }

if ($multiple && !$disable_geocoding)
	{
	# Multiple method of changing location.
	 ?>
	<br /><h1 id="location_title"><?php echo $lang["location-title"] ?></h1>
	<div><input name="editlocation" id="editlocation" type="checkbox" value="yes" onClick="var q=document.getElementById('editlocation_question');if (this.checked) {q.style.display='block';} else {q.style.display='none';}">&nbsp;<label for="editlocation"><?php echo $lang["location"] ?></label></div>
	<div class="Question" style="display:none;" id="editlocation_question">
	<label for="location"><?php echo $lang["latlong"]?></label>
	<input type="text" name="location" id="location" class="stdwidth">