예제 #1
0
            echo form::open('/' . $controller . '/edit', '');
            ?>
						<?php 
            echo form::hidden('form_id', $row->gid);
            ?>
						<?php 
            echo form::hidden('controller', $controller);
            ?>
						<?php 
            echo form::hidden('form_gallery', $row->gallery);
            ?>
						<?php 
            echo form::hidden('current', $this->uri->string());
            ?>
						<?php 
            echo assets::img_tag('global/auth_admin/pencil.png', array('title' => 'Edit this item'), TRUE);
            ?>
					<?php 
            echo form::close();
            ?>
				</div>
				<?php 
        }
        ?>
				
				<?php 
        $title = (isset($row->title) and !empty($row->title)) ? $row->title : '';
        ?>
				
				<div class="im">
					<a href="<?php 
	<td><?php 
    echo $c->getId();
    ?>
</td>
    <td><?php 
    echo $c->getName();
    ?>
</td>					
    <td>
      <a href="/containers_admin/edit/<?php 
    echo $c->getId();
    ?>
"><?php 
    echo assets::img_tag('app/admin/edit_icon.gif', array('alt' => 'Edit', 'title' => 'Edit this item'), true);
    ?>
</a> 
      <a href="/containers_admin/delete/<?php 
    echo $c->getId();
    ?>
"><?php 
    echo assets::img_tag('app/admin/delete_item.gif', array('alt' => 'delete', 'title' => 'Delete this item'), true);
    ?>
</a>
    </td>
</tr>
<?php 
    $i++;
}
?>
</tbody>
</table>
예제 #3
0
">
		    			<input type="hidden" name="action" value="deactivate">
		    			<input type="submit" name="submit" value="De-Activate">
		    		</form>
		    	<?php 
    }
    ?>
		    	<?php 
    if ($status != -1) {
        ?>
		    		<form method="POST" action="/plugins_admin/action">
		    			<input type="hidden" name="plugin_name" value="<?php 
        echo $p->getName();
        ?>
">
		    			<input type="hidden" name="action" value="delete">
						<?php 
        echo assets::img_tag('/cache/img/admin/delete_item.gif', array('alt' => 'Delete', 'name' => 'submit', 'title' => 'Delete this item'), true);
        ?>
		    		</form>
		    	<?php 
    }
    ?>
		    </td>
		</tr>
	<?php 
    $i++;
}
?>
	</tbody>
</table>
예제 #4
0
    }
    ?>
	
					<div class="form-row" style="margin: 1em; height:1px;"></div>
	
					<div class="form-row surround">
						<div class="row-title">User Admin</div>
						<div class="row-content">
							<?php 
    echo form::open('auth_admin/edit', '', array('form_id' => $user->id));
    echo assets::img_tag('global/auth_admin/pencil.png', array('title' => 'edit'), TRUE);
    echo form::close();
    ?>
							<?php 
    echo form::open('auth_admin/del', '', array('form_id' => $user->id));
    echo assets::img_tag('global/auth_admin/cross.png', array('title' => 'delete'), TRUE);
    echo form::close();
    ?>
						</div>
					</div>
				</div>
			</fieldset>
		</div>

	<?php 
} else {
    ?>
		No user
		<?php 
    //=$error_message
    ?>
<?php

$u = isset($_GET['ajax']) ? '?ajax=true' : '';
?>
<div class="form-row form-submit surround <?php 
echo $o->rp('row')->divclass;
?>
">
	<div class="row-content <?php 
echo $o->rp('row')->class;
?>
 surround" style="float: left">
			<?php 
echo assets::img_tag($o->rp('row')->src, array('id' => $o->form->get_form_name() . '-' . $o->rp('name'), 'name' => $o->rp('name'), 'title' => $o->rp('row')->field, 'value' => $o->rp('row')->value, 'class' => $o->rp('row')->class, 'style' => 'margin-top:0;'), TRUE);
?>
			<a href="<?php 
echo url::base();
?>
/<?php 
echo Kohana::instance()->input->post('current') . $u;
?>
" style="margin: 0 1em 0 0;">
				<?php 
echo assets::img_tag($o->rp('row')->cancelsrc, array('title' => 'Cancel'));
?>
			</a>			
	</div>
</div>			
예제 #6
0
        if (Acl::instance()->check(Steamauth::instance()->get_role(), null, 'edit')) {
            ?>
							<?php 
            echo form::open('/' . $controller . '/edit', '');
            ?>
							<?php 
            echo form::hidden('form_id', $item->id);
            ?>
							<?php 
            echo form::hidden('controller', $controller);
            ?>
							<?php 
            echo form::hidden('current', uri::string());
            ?>
							<?php 
            echo assets::img_tag('global/auth_admin/pencil.png', array('alt' => 'Edit', 'name' => 'submit', 'title' => 'Edit this item'), true);
            ?>
							<?php 
            echo form::close();
            ?>
						<?php 
        }
        ?>
					</td>
				</tr>
				<?php 
        $i++;
    }
    ?>
			</table>
			
예제 #7
0
<?php

echo assets::img_tag($o->rp('row')->src, array('id' => $o->form->get_form_name() . '-' . $o->rp('name'), 'name' => $o->rp('name'), 'title' => $o->rp('row')->field, 'value' => $o->rp('row')->value, 'class' => $o->rp('row')->class), TRUE);
예제 #8
0
            ?>
							<?php 
            echo form::hidden('controller', $controller);
            ?>
							<?php 
            echo form::hidden('current', uri::string() . $u);
            ?>
							<?php 
            echo form::hidden('current_status', $item->status);
            ?>
							<?php 
            $sa = array('Publish', 'Archive', 'Suspend');
            $s = $sa[$item->status];
            ?>
							<?php 
            echo assets::img_tag('/cache/img/admin/change_status.gif', array('alt' => 'Status Change', 'name' => 'submit', 'title' => $s . ' item'), true);
            ?>
							<?php 
            echo form::close();
            ?>
						<?php 
        }
        ?>
					</td>
				</tr>
				<?php 
        $i++;
    }
    ?>
				</tbody>
			</table>
        if (Acl::instance()->check(Steamauth::instance()->get_role(), null, 'edit')) {
            ?>
								<?php 
            echo form::open('/' . $controller . '/edit', '');
            ?>
								<?php 
            echo form::hidden('form_id', $item->id);
            ?>
								<?php 
            echo form::hidden('controller', $controller);
            ?>
								<?php 
            echo form::hidden('current', uri::string());
            ?>
								<?php 
            echo assets::img_tag('/cache/img/admin/edit_icon.gif', array('alt' => 'Edit', 'name' => 'submit', 'title' => 'Edit this item'), true);
            ?>
								<?php 
            echo form::close();
            ?>
							<?php 
        }
        ?>
						</td>
					</tr>
				<?php 
        $i++;
    }
    ?>
			</tbody>
		</table>