/**
  * N o d e   l i s t
  */
 protected function content($ct = null)
 {
     $nodes = ARONode::finder()->findMany((!$ct ? '1' : 't.node_type = \'' . $ct . "'") . ' ORDER BY nodes.id DESC');
     $this->tpl->assign('nodes', $nodes);
     $this->tpl->display('content/nodes.tpl.php');
 }
Beispiel #2
0
                ?>
</textarea>
					<?php 
            }
            break;
        case 'file':
        case 'image':
            ?>
				<input type="file" name="<?php 
            echo $name;
            ?>
" />
				<?php 
            break;
        case 'reference':
            $options = ARONode::finder()->findMany('1');
            ?>
				<select name="<?php 
            echo $name;
            ?>
">
				<option value="0">-- Choose one --</option>
				<?php 
            foreach ($field->html_options as $k => $v) {
                echo '<option' . ($k == $value ? ' selected' : '') . ' value="' . $k . '">' . $v . '</option>';
            }
            ?>
				</select>
				<?php 
            break;
    }