Ejemplo n.º 1
0
function t_templates_view_view($c)
{
    global $info;
    $s = '';
    foreach ($info as $i) {
        if ($i['view']) {
            $n = $i['name'];
            // shortcut
            $s .= "<?php if (isset(\$zitem['{$n}'])): ?><tr>\n                                          <td class=\"item<?php echo (\$i   %2) ?>\" align=\"right\" valign=\"top\" nowrap=\"nowrap\"><strong><?php echo _(\"{$n}\") ?></strong>&nbsp;</td>\n                                          <td class=\"item<?php echo (\$i++ %2) ?>\" width=\"100%\"><?php echo " . render_field($i) . " ?></td>\n                                          </tr>\n                                          <?php endif; ?>\n                                    ";
        }
    }
    $s = substr($s, 0, -1);
    // remove trailing ","
    $c = preg_replace('/!!ZOMBIES!!/', $s, $c);
    // get title field
    $x = field_get_title_field();
    $c = preg_replace('/!!ZOMBIENAME!!/', $x['name'], $c);
    return $c;
}
Ejemplo n.º 2
0
}
?>

  <?php 
echo $form->renderHiddenFields();
?>

  <fieldset class="collapsible" id="identityArea">

    <legend><?php 
echo __('Identity area');
?>
</legend>

    <?php 
echo render_field($form->authorizedFormOfName->label(__('Authorized form of name') . ' <span class="form-required" title="' . __('This is a mandatory element.') . '">*</span>'), $resource);
?>

  </fieldset>

  <fieldset class="collapsible" id="contactArea">

    <legend><?php 
echo __('Contact area');
?>
</legend>

    <?php 
echo get_partial('contactinformation/edit', $contactInformationEditComponent->getVarHolder()->getAll());
?>
    
Ejemplo n.º 3
0
?>

    <?php 
echo $form->language->help(__('Select the language(s) of this record from the drop-down menu; enter the first few letters to narrow the choices. (ISDIAH 5.6.7)'))->renderRow(array('class' => 'form-autocomplete'));
?>

    <?php 
echo $form->script->help(__('Select the script(s) of this record from the drop-down menu; enter the first few letters to narrow the choices. (ISDIAH 5.6.7)'))->renderRow(array('class' => 'form-autocomplete'));
?>

    <?php 
echo render_field($form->descSources->help(__('"Record the sources consulted in establishing the description of the institution." (ISDIAH 5.6.8)'))->label(__('Sources')), $resource, array('class' => 'resizable'));
?>

    <?php 
echo render_field($form->maintenanceNotes->help(__('"Record notes pertinent to the creation and maintenance of the description." (ISDIAH 5.6.9)')), $isdiah, array('class' => 'resizable'));
?>

  </fieldset>

  <div class="actions section">

    <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

    <div class="content">
      <ul class="clearfix links">
        <?php 
if (isset($sf_request->getAttribute('sf_route')->resource)) {
Ejemplo n.º 4
0
  </div>

  <?php 
echo render_field($form['label']->help(__('Provide a menu label for users.  For menu items that are not visible (i.e. are organizational only) this should be left blank.'))->label(__('Label')), $menu);
?>

  <?php 
echo $form->parentId->label('Parent')->renderRow();
?>

  <?php 
echo $form['path']->help(__('Provide a link to an external website or an internal, symfony path (module/action).'))->label(__('Path'))->renderRow();
?>

  <?php 
echo render_field($form['description']->help(__('Provide a brief description of the menu and it\'s purpose.'))->label(__('Description')), $menu);
?>

  <div class="actions section">

    <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

    <div class="content">
      <ul class="clearfix links">

        <li><?php 
echo link_to(__('Cancel'), array('module' => 'menu', 'action' => 'list'));
?>
Ejemplo n.º 5
0
?>

    <?php 
echo render_field($form->revisionHistory->help(__('Record the date(s) the entry was prepared and/or revised.'))->label(__('Dates of creation, revision and deletion')), $resource, array('class' => 'resizable'));
?>

    <?php 
echo $form->languageOfDescription->help(__('Indicate the language(s) used to create the description of the archival material.'))->label(__('Language(s)'))->renderRow(array('class' => 'form-autocomplete'));
?>

    <?php 
echo $form->scriptOfDescription->help(__('Indicate the script(s) used to create the description of the archival material.'))->label(__('Script(s)'))->renderRow(array('class' => 'form-autocomplete'));
?>

    <?php 
echo render_field($form->sources, $resource, array('class' => 'resizable'));
?>

    <div class="form-item">

      <table>
        <thead>
          <tr>
            <th>
              <?php 
echo __('Archivist\'s notes');
?>
            </th><th style="text-align: right">
              <?php 
echo image_tag('delete', array('align' => 'top', 'class' => 'deleteIcon'));
?>
Ejemplo n.º 6
0
    ?>
  <?php 
    echo $form->renderFormTag(url_for(array('module' => 'physicalobject', 'action' => 'add')));
}
?>

  <?php 
echo $form->renderHiddenFields();
?>

  <?php 
echo render_field($form->name, $resource);
?>

  <?php 
echo render_field($form->location, $resource);
?>

  <?php 
echo $form->type->renderRow();
?>

  <div class="actions section">

    <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

    <div class="content">
      <ul class="clearfix links">
Ejemplo n.º 7
0
?>

    <?php 
echo $form->language->help(__('Select the language(s) of the authority record from the drop-down menu; enter the first few letters to narrow the choices. (ISAAR 5.4.7)'))->label('Language(s)')->renderRow(array('class' => 'form-autocomplete'));
?>

    <?php 
echo $form->script->help(__('Select the script(s) of the authority record from the drop-down menu; enter the first few letters to narrow the choices. (ISAAR 5.4.7)'))->label('Script(s)')->renderRow(array('class' => 'form-autocomplete'));
?>

    <?php 
echo render_field($form->sources->help(__('"Record the sources consulted in establishing the authority record." (ISAAR 5.4.8)')), $resource, array('class' => 'resizable'));
?>

    <?php 
echo render_field($form->maintenanceNotes->help(__('"Record notes pertinent to the creation and maintenance of the authority record. The names of persons responsible for creating the authority record may be recorded here." (ISAAR 5.4.9)')), $isaar, array('class' => 'resizable'));
?>

  </fieldset>

  <div class="actions section">

    <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

    <div class="content">
      <ul class="clearfix links">

        <?php 
Ejemplo n.º 8
0
    ?>
  <?php 
    echo $form->renderFormTag(url_for(array($group, 'module' => 'aclGroup', 'action' => 'edit')), array('id' => 'editForm'));
} else {
    ?>
  <?php 
    echo $form->renderFormTag(url_for(array('module' => 'aclGroup', 'action' => 'add')), array('id' => 'editForm'));
}
?>

  <?php 
echo render_field($form->name, $group);
?>

  <?php 
echo render_field($form->description, $group, array('class' => 'resizable'));
?>

  <?php 
echo $form->translate->renderRow();
?>

  <div class="actions section">

    <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

    <div class="content">
      <ul class="clearfix links">
Ejemplo n.º 9
0
  <?php 
} else {
    ?>
    <?php 
    echo render_field($form->name, $resource);
    ?>
  <?php 
}
?>

  <?php 
echo $form->useFor->renderRow();
?>

  <?php 
echo render_field($form->code, $resource);
?>

  <?php 
echo $form->scopeNote->label(__('Scope note(s)'))->renderRow();
?>

  <?php 
echo $form->sourceNote->label(__('Source note(s)'))->renderRow();
?>

  <?php 
echo $form->displayNote->label(__('Display note(s)'))->renderRow();
?>

  <fieldset class="collapsible collapsed">
Ejemplo n.º 10
0
?>

  <?php 
echo $form->date->help(__('Date of deaccession'))->label(__('Date') . ' <span class="form-required" title="' . __('This is a mandatory element.') . '">*</span>')->renderRow(array('class' => 'date-widget', 'icon' => image_path('calendar.png')));
?>

  <?php 
echo render_field($form->description->help(__('Identify what materials are being deaccessioned.'))->label(__('Description') . ' <span class="form-required" title="' . __('This is a mandatory element.') . '">*</span>'), $resource, array('class' => 'resizable'));
?>

  <?php 
echo render_field($form->extent->help(__('The number of units as a whole number and the measurement of the records to be deaccessioned.')), $resource, array('class' => 'resizable'));
?>

  <?php 
echo render_field($form->reason->help(__('Provide a reason why the records are being deaccessioned.')), $resource, array('class' => 'resizable'));
?>

  <div class="actions section">

    <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

    <div class="content">
      <ul class="clearfix links">

        <?php 
if (isset($resource->id)) {
    ?>
Ejemplo n.º 11
0
    ?>
      <input class="add" type="hidden" value="<?php 
    echo url_for(array('module' => 'term', 'action' => 'add', 'taxonomy' => url_for(array(QubitTaxonomy::getById(QubitTaxonomy::SUBJECT_ID), 'module' => 'taxonomy'))));
    ?>
 #name"/>
    <?php 
}
?>
    <input class="list" type="hidden" value="<?php 
echo url_for(array('module' => 'term', 'action' => 'autocomplete', 'taxonomy' => url_for(array(QubitTaxonomy::getById(QubitTaxonomy::SUBJECT_ID), 'module' => 'taxonomy'))));
?>
"/>
  </div>

  <?php 
echo render_field($form->accessConditions->help(__('Information about restrictions imposed on access to a resource. See MODS accessCondition top-level element for more information on how to use this field.')), $resource, array('class' => 'resizable'));
?>

  <div class="form-item">
    <?php 
echo $form->repository->renderLabel();
?>
    <?php 
echo $form->repository->render(array('class' => 'form-autocomplete'));
?>
    <?php 
echo $form->repository->help(__('Identifies the institution or repository holding the resource. Search for an existing repository name by typing the first few letters of the name. ALternatively, type a new name to create and link to a new repository record.'))->renderHelp();
?>
    <input class="add" type="hidden" value="<?php 
echo url_for(array('module' => 'repository', 'action' => 'add'));
?>
Ejemplo n.º 12
0
  <?php 
    foreach ($section->fields as $field) {
        ?>
  <?php 
        foreach ($field as $id => $label) {
            ?>

    <div class="field">
      <div class="name">
      <?php 
            echo htmlspecialchars($label);
            ?>
      </div>
      <div class="value">
      <?php 
            echo render_field($id, $data, $user->id);
            ?>
      </div>
    </div>
  <?php 
        }
    }
    ?>
</div>
<?php 
}
?>
</div>

<?php 
echo anchor("admin/volunteers/delete/{$user->id}", 'Permanently Delete User', array('id' => 'btnDeleteUser'));
Ejemplo n.º 13
0
    ?>
 #name"/>
    <?php 
}
?>
    <input class="list" type="hidden" value="<?php 
echo url_for(array('module' => 'term', 'action' => 'autocomplete', 'taxonomy' => url_for(array(QubitTaxonomy::getById(QubitTaxonomy::PLACE_ID), 'module' => 'taxonomy'))));
?>
"/>
    <?php 
echo $form->placeAccessPoints->help(__('<p>The name of a place or geographic area which is a topic of the resource or relevant to its jurisdiction.</p><p>Search for an existing term in the Place taxonomy by typing the first few characters of the place name. Alternatively, type a new name to create and link to a new place.</p><p>Please note: if you entered a place of creation, publication or contribution that will be output automatically, so don’t repeat that place name here.</p>'))->renderHelp();
?>
  </div>

  <?php 
echo render_field($form->accessConditions->help(__('Information about rights held in and over the resource (e.g. copyright, access conditions, etc.).'))->label(__('Rights')), $resource, array('class' => 'resizable'));
?>

  <fieldset class="collapsible collapsed" id="rightsArea">

    <legend><?php 
echo __('Rights area');
?>
</legend>

    <?php 
echo get_partial('right/edit', $rightEditComponent->getVarHolder()->getAll());
?>

  </fieldset>
Ejemplo n.º 14
0
echo $resource->__toString();
?>
</h1>

<?php 
echo $form->renderGlobalErrors();
?>

<?php 
echo $form->renderFormTag(url_for(array($resource, 'module' => 'informationobject', 'action' => 'fileList')));
?>

<div class="section">

<?php 
echo render_field($form->sortBy->label(__('Sort by')), $resource);
?>

</div>

<div class="actions section">

  <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

  <div class="content">
    <ul class="clearfix links">
      <li><input class="form-submit" type="submit" value="<?php 
echo __('Continue');
Ejemplo n.º 15
0
?>

    <?php 
echo render_field($form->receivedExtentUnits->help(__('The number of units as a whole number and the measurement of the received volume of records in the accession.')), $resource);
?>

    <?php 
echo $form->processingStatus->help(__('An indicator of the accessioning process.'))->renderRow();
?>

    <?php 
echo $form->processingPriority->help(__('Indicates the priority the repository assigns to completing the processing of the accession.'))->renderRow();
?>

    <?php 
echo render_field($form->processingNotes->help(__('Notes about the processing plan, describing what needs to be done for the accession to be processed completely.')), $resource, array('class' => 'resizable'));
?>

  </fieldset>

  <fieldset class="collapsible collapsed" id="rightsArea">

    <legend><?php 
echo __('Rights area');
?>
</legend>

    <?php 
echo get_partial('right/edit', $rightEditComponent->getVarHolder()->getAll());
?>
Ejemplo n.º 16
0
<?php 
echo $form->renderGlobalErrors();
?>

<?php 
echo $form->renderFormTag(url_for(array($resource, 'module' => 'informationobject', 'action' => 'itemList')));
?>

<div class="section">

<?php 
echo render_field($form->sortBy->label(__('Sort by')), $resource);
?>

<?php 
echo render_field($form->includeThumbnails->label(__('Include thumbnails')), $resource);
?>

</div>

<div class="actions section">

  <h2 class="element-invisible"><?php 
echo __('Actions');
?>
</h2>

  <div class="content">
    <ul class="clearfix links">
      <li><input class="form-submit" type="submit" value="<?php 
echo __('Continue');