Exemplo n.º 1
0
/**
 * Set the theme
 * @param Mixed $css String or array
 */
function use_plop_theme($class = '', $theme = null)
{
    if (!$theme) {
        $theme = sfPlop::get('sf_plop_theme');
    }
    if (preg_match('/\\s/', $theme) !== false) {
        $subthemes = explode(' ', $theme);
        $theme = array_shift($subthemes);
        $class .= ' ' . implode(' ', $subthemes);
    }
    $themes = sfPlop::get('sf_plop_loaded_themes');
    if ($theme != false && is_string($theme) && isset($themes[$theme])) {
        if (isset($themes[$theme]['css'])) {
            use_plop_stylesheet($themes[$theme]['css']);
        }
        if (isset($themes[$theme]['js'])) {
            use_plop_javascript($themes[$theme]['js']);
        }
    } else {
        $theme = '';
    }
    if (has_slot('sf_plop_theme') && $theme == sfPlop::get('sf_plop_theme')) {
        slot('sf_plop_theme', get_slot('sf_plop_theme') . $theme . ' ' . $class);
    } else {
        slot('sf_plop_theme', $theme . ' ' . $class);
    }
}
Exemplo n.º 2
0
 public function ajax_kik()
 {
     $this->loadData();
     list($nb_red, $nb_blue) = self::compterSignes($this->grille);
     $x = intval(getValue('x'));
     $y = intval(getValue('y'));
     $charat = $y * 3 + $x;
     if ($this->grille[$charat] == 0 && $nb_red - $nb_blue + 1 == intval(slot()->position)) {
         $this->grille[$charat] = intval(slot()->position);
         $this->saveData();
     }
     $winner = self::checkTicTacToe($this->grille);
     switch ($winner['etat']) {
         case 0:
             return $this->ajax_update();
         case 1:
         case 2:
             $slots = partie()->getSlots();
             $slots[$winner['etat'] - 1]->addScore(1, true);
             $r = $this->terminer();
             $r->highlight = $winner['highlight'];
             $r->grid = $this->grille;
             return $r;
         case 3:
             $slots = partie()->getSlots();
             $r = $this->terminer();
             $r->highlight = $winner['highlight'];
             $r->grid = $this->grille;
             return $r;
         default:
             throw new Exception('grille de Tic Tac Toe impossible : ' . $winner);
     }
 }
Exemplo n.º 3
0
 /**
  * Searches for coordinators
  * CODE: coordinator_index, coordinator_create
  */
 public function executeIndex(sfWebRequest $request)
 {
     # security
     if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Pilot', 'Coordinator', 'Volunteer'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     $this->getUser()->addRecentItem('Coordinator', 'Coordinator', 'coordinator/index');
     # for navigation menu
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('mission_coord', ''));
     if ($request->hasParameter('coor_for') && $this->getUser()->hasCredential(array('Administrator', 'Staff'), false)) {
         $this->coor_for = CoordinatorPeer::retrieveByPK($request->getParameter('coor_for'));
     } else {
         $this->coor_for = null;
     }
     $exclude_ids = array();
     if ($this->master_for) {
         $exclude_ids[] = $this->master_for->getId();
     }
     # filter
     $this->processFilter($request);
     $this->pager = CoordinatorPeer::getPager($this->max, $this->page, $this->firstname, $this->lastname, $this->city, $this->state, $this->country, $this->coor_of_week, $exclude_ids);
     $this->coordinators = $this->pager->getResults();
     # one result with coordinator_id search will go to coordinator view
     if (count($this->coordinators) == 1) {
         if ($this->coor_for) {
             $url_add = '&coor_for=' . $this->coor_for->getId();
         } else {
             $url_add = '';
         }
         $this->redirect('@coordinator_view?id=' . $this->coordinators[0]->getId() . $url_add);
     }
 }
Exemplo n.º 4
0
 public function process()
 {
     $this->initRegles();
     $this->initPlateau();
     $this->addJs(WWW_JS . 'jquery.event.drag.min.js');
     $demi = $this->regles->taille_plateau / 2;
     $nb_pion = $demi * ($demi - 1);
     smarty()->assign(array('plateau_inverse' => intval(slot()->position) == 1, 'regles' => $this->regles, 'nb_joueur' => partie()->getNbJoueur()));
 }
Exemplo n.º 5
0
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
 public function executeIndex(sfWebRequest $request)
 {
     //removing used session like person id
     $id = $this->getUser()->getAttribute('person_id');
     unset($id);
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('instrument'));
     # for navigation menu
 }
Exemplo n.º 6
0
 /**
  * Add or edit afaorgs
  * It also handles followings:
  * CODE: afaorg_create
  */
 public function executeUpdate(sfWebRequest $request)
 {
     # security
     if (!$this->getUser()->hasCredential(array('Administrator'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('reference', ''));
     if ($request->getParameter('id')) {
         $afa = AfaOrgPeer::retrieveByPK($request->getParameter('id'));
         $this->forward404Unless($afa);
         $this->title = 'Edit Linking Organization';
         $success = 'Linking Organization information has been successfully changed!';
     } else {
         $afa = new AfaOrg();
         $this->title = 'Add Linking Organization';
         $success = 'Linking Organization information has been successfully created!';
     }
     $this->form = new AfaOrgForm($afa);
     if ($request->isMethod('post')) {
         $this->referer = $request->getReferer();
         $this->form->bind($request->getParameter('afa'));
         if ($this->form->isValid()) {
             $afa->setName($this->form->getValue('name'));
             $afa->setOrgPhone($this->form->getValue('org_phone'));
             $afa->setHomePageUrl($this->form->getValue('home_page_url'));
             $afa->setOrgFax($this->form->getValue('org_fax'));
             $afa->setRefContactName($this->form->getValue('ref_contact_name'));
             $afa->setRefContactEmail($this->form->getValue('ref_contact_email'));
             $afa->setVpoSoapServerUrl($this->form->getValue('vpo_soap_server_url'));
             $afa->setVpoRequestPostEmail($this->form->getValue('vpo_request_post_email'));
             $afa->setVpoUserId($this->form->getValue('vpo_user_id'));
             $afa->setVpoUserPassword($this->form->getValue('vpo_user_password'));
             $afa->setVpoOrgId($this->form->getValue('vpo_org_id'));
             $afa->setAfidsRequesterUserName($this->form->getValue('afids_requester_user_name'));
             $afa->setAfidsRequesterPassword($this->form->getValue('afids_requester_password'));
             $afa->setAfidsSoapServerUrl($this->form->getValue('afids_soap_server_url'));
             $afa->setAfidsRequestPostEmail($this->form->getValue('afids_request_post_email'));
             $afa->setPhoneNumber1($this->form->getValue('phone_number1'));
             $afa->setPhoneNumber2($this->form->getValue('phone_number2'));
             if ($afa->isNew()) {
                 $content = $this->getUser()->getName() . ' added Linking Organization: ' . $afa->getName();
                 ActivityPeer::log($content);
             }
             $afa->save();
             $this->getUser()->setFlash('success', $success);
             return $this->redirect('@afaOrg');
         }
     } else {
         # Set referer URL
         $this->referer = $request->getReferer() ? $request->getReferer() : '@afaorg';
     }
     $this->afa = $afa;
 }
Exemplo n.º 7
0
/**
 * Set a slot and returns the HTML for a uiSelectPager.
 * 
 * The slot allows to re-print the pager at the top and bottom of a table by
 * running the pager template only once.
 * 
 * Examples:
 * 
 *  echo ui_select_pager($pager)
 *    => Set and print the pager slot with the default slot name
 *  echo ui_select_pager()
 *    => Print the HTML for previously set slot
 *  echo ui_select_pager($pager, 'pager2')
 *    => Print and set a pager with a custom slot name
 *       (allows different pagers on one template)
 *  echo ui_select_pager(false, 'pager2')
 *    => Print previously set pager with custom slot name
 * 
 * @param  mixed   $pager   uiSelectPager object or false
 * @param  string  $slot    Slot name, leave out to use the default
 * 
 * @return string  HTML representation
 */
function ui_select_pager($pager = false, $slot = 'widgets.ui.pager')
{
    if ($pager !== false) {
        slot($slot);
        $view = new coreView(coreContext::getInstance());
        $view->getParameterHolder()->add(array('pager' => $pager));
        $view->setTemplate(dirname(__FILE__) . '/templates/ui_select_pager.php');
        echo $view->render();
        end_slot();
    }
    return get_slot($slot);
}
Exemplo n.º 8
0
    public function process()
    {
        $slots = queryTab('
			select * from slot
			natural join joueur
			where partie_id=' . partie()->getID() . '
			order by slot_position
		');
        smarty()->assign('slots', $slots);
        smarty()->assign('options', jeu()->getOptions());
        smarty()->assign('isHost', intval(slot()->joueur_id) == intval(partie()->host));
    }
Exemplo n.º 9
0
function seoIndex($object)
{
    $indexable = $object->getPeanutSeo()->getIsIndexable();
    $followable = $object->getPeanutSeo()->getIsFollowable();
    if ($indexable && $followable) {
        return slot('robots', sprintf('index, follow'));
    } elseif ($indexable && !$followable) {
        return slot('robots', sprintf('index, nofollow'));
    } elseif (!$indexable && $followable) {
        return slot('robots', sprintf('noindex, follow'));
    } else {
        return slot('robots', sprintf('noindex, nofollow'));
    }
}
Exemplo n.º 10
0
 /**
  * Searches for pilot
  * CODE: pilot_index
  */
 public function executeIndex(sfWebRequest $request)
 {
     # security
     if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Pilot', 'Coordinator', 'Volunteer'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     $this->getUser()->addRecentItem('Pilot', 'pilot', 'pilot/index');
     # for navigation menu
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('mission_coord', ''));
     # filter
     $this->processFilter($request);
     if ($request->isMethod('post') || $request->getParameter('page')) {
         $this->pager = PilotPeer::getPager($this->max, $this->page, $this->firstname, $this->lastname, $this->city, $this->state, $this->wing_name, $this->flight_status, $this->available, $this->identifier, $this->ifr_rated, $this->n_number, $this->make, $this->model, $this->hseat_status, $this->transplant);
         $this->pilots = $this->pager->getResults();
     }
 }
Exemplo n.º 11
0
 /**
  * missionRequests
  * CODE:miss_req_index
  * TODO:Mission Request Filter , Find
 */
 public function executeIndex(sfWebRequest $request)
 {
     #security
     if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Pilot', 'Coordinator', 'Volunteer'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     # for navigation menu
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('mission_coord', ''));
     # handle the master member
     # filter
     $this->processFilter($request);
     $this->pager = MissionRequestPeer::getPager($this->max, $this->page, $this->request_date1, $this->request_date2, $this->mission_date1, $this->mission_date2, $this->standart, $this->referrals);
     $this->mission_reqs = $this->pager->getResults();
     $this->date_widget = new widgetFormDate(array('format_date' => array('js' => 'mm/dd/yy', 'php' => 'm/d/Y')), array('class' => 'text'));
     $this->getUser()->addRecentItem('Mission request', 'missionRequest', 'missionRequest/index');
 }
Exemplo n.º 12
0
 /**
  * Search companions
  * CODE: companion_index
  */
 public function executeIndex(sfWebRequest $request)
 {
     # security
     if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Pilot', 'Coordinator', 'Volunteer'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     $this->companion_list = CompanionPeer::doSelect(new Criteria());
     # for navigation menu
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('mission_coord', ''));
     # filter
     $this->processFilter($request);
     if ($request->isMethod('post') || $request->getParameter('page')) {
         $this->pager = CompanionPeer::getPager($this->max, $this->page, $this->firstname, $this->lastname, $this->name, $this->relationship);
         $this->companions = $this->pager->getResults();
     }
     $this->getUser()->addRecentItem('Companions', 'companions', 'companions/index');
 }
Exemplo n.º 13
0
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
 public function executeIndex(sfWebRequest $request)
 {
     # for navigation menu
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('instrument', ''));
     #security
     /* if( !$this->getUser()->hasCredential(array('Administrator','Staff','Pilot','Member','Coordinator','Volunteer'), false)){
            $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url '.$request->getReferer());
            $this->redirect('dashboard/index');
        }*/
     if ($request->getParameter('type')) {
         $this->flag = 1;
     }
     if ($request->hasParameter('return')) {
         $this->pilot_request = 1;
     }
     if ($request->hasParameter('avail')) {
         $this->window_loc = 'avail';
     }
     if ($request->hasParameter('window_loc_visual')) {
         $this->window_loc_visual = 'window_loc_visual';
     }
     $member_id = $this->getUser()->getMemberId();
     $member = MemberPeer::retrieveByPK($member_id);
     $pilot = $member->getPilot();
     if ($request->getParameter('first') == 1) {
         if ($pilot) {
             $first_airport = AirportPeer::retrieveByPK($pilot->getPrimaryAirportId());
             $this->orgin_airport = $first_airport->getIdent();
         }
         $this->types = MissionTypePeer::getOnlyNames();
         $this->dest_airport = null;
         $this->miss_type = null;
         $this->miss_date1 = null;
         $this->miss_date2 = null;
     } else {
         $this->processFilterVisual($request);
     }
     $this->airport_list = AirportPeer::getMappable();
     $this->legs = MissionLegPeer::getMappable($this->orgin_airport, $this->dest_airport, $this->miss_type, $this->miss_date1, $this->miss_date2);
     $this->date_widget = new widgetFormDate(array('format_date' => array('js' => 'mm/dd/yy', 'php' => 'm/d/Y')), array('class' => 'text'));
 }
Exemplo n.º 14
0
 /**
  * Searches for requesters
  * CODE: requester_index
  */
 public function executeIndex(sfWebRequest $request)
 {
     # security
     if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Pilot', 'Coordinator', 'Volunteer'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     if ($request->hasParameter('mission_for')) {
         //$mission_leg = MissionLegPeer::retrieveByPK($request->getParameter('mission_for'));
         $this->mission_for = MissionPeer::retrieveByPK($request->getParameter('mission_for'));
         $this->can_use = 1;
     } else {
         $this->change_id = null;
     }
     $exclude_ids = array();
     if ($this->mission_for) {
         $exclude_ids[] = $this->mission_for->getId();
     }
     # for navigation menu
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('mission_coord', ''));
     # filter
     $this->processFilter($request);
     if ($request->isMethod('post') || $request->getParameter('page')) {
         $this->pager = RequesterPeer::getPager($this->max, $this->page, $this->firstname, $this->lastname, $this->city, $this->state, $this->agency_name, $exclude_ids);
         $this->requesters = $this->pager->getResults();
     }
     # one result with member_id search will go to member view
     if (count($this->requesters) == 1) {
         if ($this->mission_for) {
             $url_add = '&mission_for=' . $this->mission_for->getId();
         } else {
             $url_add = '';
         }
         if ($request->getParameter('mission_for')) {
             $this->redirect('@leg_edit?id=' . $request->getParameter('mission_for') . $url_add);
         }
     }
     $this->getUser()->addRecentItem('Requesters', 'requesters', 'requester/index');
 }
Exemplo n.º 15
0
 /**
  * Searches for members
  * It also handles followings:
  * * Master member of a member
  * CODE: member_index
  */
 public function executeIndex(sfWebRequest $request)
 {
     # security
     if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Pilot', 'Member', 'Coordinator', 'Volunteer'), false)) {
         $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer());
         $this->redirect('dashboard/index');
     }
     $this->getUser()->addRecentItem('Member', 'member', 'member/index');
     # for navigation menu
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     slot('nav_menu', array('mission_coord', ''));
     # handle the master member
     if ($request->hasParameter('master_for') && $this->getUser()->hasCredential(array('Administrator', 'Staff', 'Member'), false)) {
         $this->master_for = MemberPeer::retrieveByPK($request->getParameter('master_for'));
     } else {
         $this->master_for = null;
     }
     //    $this->member_id = $this->getRequestParameter('member_id');
     $exclude_ids = array();
     if ($this->master_for) {
         $exclude_ids[] = $this->master_for->getId();
     }
     # filter
     $this->processFilter($request);
     if ($request->isMethod('post') || $request->getParameter('page')) {
         $this->pager = MemberPeer::getPager($this->max, $this->page, $this->member_Ex_id, $this->firstname, $this->lastname, $this->city, $this->state, $this->country, $this->wing_name, $this->active, $this->flight_status, $exclude_ids);
         $this->members = $this->pager->getResults();
     }
     $this->is_active = $request->getParameter('actives');
     # one result with member_id search will go to member view
     if (count($this->members) == 1 && $this->member_id > 0) {
         if ($this->master_for) {
             $url_add = '&master_for=' . $this->master_for->getId();
         } else {
             $url_add = '';
         }
         $this->redirect('@member_view?id=' . $this->members[0]->getId() . $url_add);
     }
 }
Exemplo n.º 16
0
echo __('User list', array(), 'messages');
?>
</h1>

  <?php 
include_partial('sfGuardUser/flashes');
?>

  <div id="sf_admin_header">
    <?php 
include_partial('sfGuardUser/list_header', array('pager' => $pager));
?>
  </div>

<?php 
slot('filters');
?>
<div class="notes">
<h2>Filters</h2>
  <div id="sf_admin_bar">
    <?php 
include_partial('sfGuardUser/filters', array('form' => $filters, 'configuration' => $configuration));
?>
  </div>
</div>
<?php 
end_slot();
?>

  <div id="sf_admin_content">
    <form action="<?php 
<?php

slot('submenu');
include_partial('submenu');
end_slot();
?>

<?php 
slot('title');
echo __('Inactive Apps');
end_slot();
?>

<?php 
if ($pager->getNbResults()) {
    slot('pager');
    op_include_pager_navigation($pager, '@op_opensocial_inactive_list?page=%d');
    end_slot();
    include_slot('pager');
    ?>
<ul>
<?php 
    foreach ($pager->getResults() as $application) {
        ?>
<li><?php 
        echo link_to($application->getTitle(), '@op_opensocial_info?id=' . $application->getId());
        ?>
</li>
<?php 
    }
    ?>
Exemplo n.º 18
0
<?php

slot('title', __('Add Lithologic unit'));
?>
<div class="page">
    <h1 class="edit_mode"><?php 
echo __('New Lithologic unit');
?>
</h1>

    <?php 
include_partial('form', array('form' => $form));
?>
    <?php 
include_partial('widgets/float_button', array('form' => $form, 'module' => 'lithology', 'search_module' => 'lithology/index', 'save_button_id' => 'submit'));
?>
</div>
<?php

use_helper('Pagination');
$title = __('Latest messages', null, 'sfSimpleForum');
?>

<?php 
slot('title', $title . ' - Forum ' . sfConfig::get('app_config_title_short'));
?>

<?php 
slot('forum_navigation');
?>
  <?php 
echo forum_breadcrumb(array(array(__(sfConfig::get('app_sfSimpleForumPlugin_forum_name', 'Forums'), null, 'sfSimpleForum'), 'sfSimpleForum/forumList'), $title));
end_slot();
?>

<div id="middle-side" class="forum">

  <div class="breadcrumb">
    <?php 
include_slot('forum_navigation');
?>
  </div>

  <h1><?php 
echo $title;
?>
</h1>
Exemplo n.º 20
0
<?php

slot('currentPage', 'article_published');
include_partial('article/headBlock');
?>

<?php 
function sort_helper($text, $sort, $c_sort)
{
    if ($c_sort['sortby'] == $sort) {
        $order = $c_sort['order'] == 'asc' ? 'desc' : 'asc';
        $text .= $c_sort['order'] == 'desc' ? ' ↓' : ' ↑';
    } else {
        $order = 'desc';
    }
    return link_to('<p>' . $text . '</p>', 'article_published', array('sortby' => $sort, 'order' => $order));
}
?>


<table id=wrks_data cellpadding="0" cellspacing="0">
    <tr class=w>
        <td colspan=7>
            <p class=h>Опубликованные работы</p>
        </td>
    </tr>
    <tr class=y>
        <td>
            <p>Текущий период</p>
        </td>
        <td colspan=6>
Exemplo n.º 21
0
<?php

slot('submenu');
include_partial('submenu');
end_slot();
?>

<?php 
slot('title', __('Change Language'));
?>

<form action="<?php 
echo url_for('admin/changeLanguage');
?>
" method="post">
<?php 
echo $form;
?>
<br />
<input type="submit" value="<?php 
echo __('Setting');
?>
" />
</form>
Exemplo n.º 22
0
<link rel="stylesheet" type="text/css" href="web/css/main.css" />


<?php 
slot('adminSlot');
?>
<div class="randomarticle"><?php 
echo link_to('add Random article', 'adminblog/randomArticle');
?>
 </div>
<div class="randomarticle" style="top:70px"><?php 
echo link_to('add new article', 'adminblog/new');
?>
</div>

<?php 
end_slot();
Exemplo n.º 23
0
<?php

slot('op_sidemenu');
$categoryList = array();
foreach ($config as $k => $v) {
    $categoryList[$k] = link_to(__($v), '@confirmation_list?category=' . $k);
}
op_include_parts('pageNav', 'pageNav', array('list' => $categoryList, 'current' => $category));
end_slot();
?>

<?php 
if (count($list)) {
    ?>
<div class="dparts searchResultList"><div class="parts">
<div class="partsHeading"><h3><?php 
    echo __($config[$category]);
    ?>
</h3></div>
<p><?php 
    echo __('You have the following pending requests. Select "Accept" or "Reject".');
    ?>
</p>
<?php 
    foreach ($list as $item) {
        echo $form->renderFormTag(url_for('@confirmation_decision?id=' . $item['id'] . '&category=' . $category));
        echo $form->renderHiddenFields();
        ?>
<div class="ditem"><div class="item"><table style="background-color: #fff;"><tr>
<td class="photo" rowspan="<?php 
        echo count($item['list']) + 1;
Exemplo n.º 24
0
'>MOTOR CONTROLS</a>
		<p>Mechanical problems? Buy replacement parts or have your equipment repaired. Need a heater or a medium voltage contactor? LiveWire can help get you back on-line.</p>
	</div>
	<div class='product bu bottom'>
		<a href='<?php 
echo url_for('@busway');
?>
'>BUSWAY</a>
		<p>Expanding existing busway? Replacing a burnt out busplug? Need a custom-made part? LiveWire supplies obsolete and current model busway plugs and busduct.</p>
	</div>
	<div class='product fu bottom'>
		<a href='<?php 
echo url_for('@fuses');
?>
'>FUSES</a>
		<p>Same day shipments, technical support and easy on-line ordering are available for Bussman, Littlefuse and Ferraz Shawmut. You can buy new and obsolete fuses.</p>
	</div>
	<div class='product mv last bottom'>
		<a href='<?php 
echo url_for('@medium_voltage');
?>
'>MEDIUM VOLTAGE</a>
		<p>LiveWire Medium Voltage Equipment has made its name known by delivering Certified Equipment on a quick turnaround. Switchgear, breakers, contactors and more.</p>
	</div>
</div>
<?php 
slot('sidebar');
?>
	<?php 
include_partial('global/expertBox');
end_slot();
Exemplo n.º 25
0
<?php

use_helper('I18N');
use_stylesheets_for_form($form);
slot('sf_apply_login');
end_slot();
?>
		<div class="sf_apply sf_apply_reset_request">

		<h2 class="green_style"><?php 
echo __("Passwort zurücksetzen", array(), 'sfForkedApply');
?>
</h2>
		<form method="POST" action="<?php 
echo url_for('sfApply/resetRequest');
?>
" name="sf_apply_reset_request" id="sf_apply_reset_request">

		<p>
			<?php 
echo __('Username oder Passwort vergessen? Kein Problem! Einfach Benutzername oder Email-Adresse eingeben und bestätigen und wir schicken ihnen eine Email mit ihrem Benutzernamen und einem Link zum Zurücksetzen des Passworts.', array(), 'sfForkedApply');
?>
		</p>

		<table>
		  <tbody>
		    <?php 
echo $form;
?>
		  </tbody>
		  <tfoot>
Exemplo n.º 26
0
<?php

slot('header_text', 'Modifications');
slot('header_link', 'modification/list');
?>

<form action="<?php 
echo url_for('modification/list');
?>
">

<?php 
echo input_hidden_tag('user_id', $sf_request->getParameter('user_id'));
echo input_hidden_tag('object_id', $sf_request->getParameter('object_id'));
echo input_hidden_tag('object_model', $sf_request->getParameter('object_model'));
?>

Look between <?php 
echo input_tag('start', $sf_request->getParameter('start'));
?>
 and <?php 
echo input_tag('end', $sf_request->getParameter('end'));
?>
 
<br />
<br />
<input type="checkbox" value="1" name="model[Reference]"> Reference&nbsp;&nbsp;
<input type="checkbox" value="1" name="model[Entity]">Entity&nbsp;&nbsp;
<input type="checkbox" value="1" name="model[Relationship]">Relationship&nbsp;&nbsp;
<input type="checkbox" value="1" name="model[Address]"> Address&nbsp;&nbsp;
<input type="checkbox" value="1" name="model[Image]"> Image&nbsp;&nbsp;
Exemplo n.º 27
0
<?php slot('sidebar') ?>
  <?php include_partial('dsRegistration/sidebar') ?>  
<?php end_slot() ?>


<?php use_helper('Date', 'I18N') ?>
  <?php include_partial('global/flashes') ?>  
    
  <h2><?php echo __('Registrations / Inbox', array(), 'messages') ?></h2>


  <div class="form-container">
    <?php include_partial('dsRegistration/list', array('pager' => $pager, 'helper' => $helper)) ?>
    <div class="actions">


    </div>
  </div>
Exemplo n.º 28
0
?>
<div class="a-ui a-admin-header">
    <ul class="a-ui a-controls a-admin-controls">
        <?php 
include_partial('aPollAnswerAdmin/show_actions', array('helper' => $helper, 'answer' => $a_poll_answer));
?>
   
    </ul>
</div>
<?php 
end_slot();
?>


<?php 
slot('a-subnav');
?>
<div class="a-ui a-subnav-wrapper admin">
    <div class="a-subnav-inner">
        <?php 
include_partial('aPollAnswerAdmin/form_header', array('a_poll_answer' => $a_poll_answer, 'form' => $form_answer, 'configuration' => $configuration));
?>
    </div>	
</div>
<?php 
end_slot();
?>

<div class="a-ui a-admin-container <?php 
echo $sf_params->get('module');
?>
Exemplo n.º 29
0
    echo image_tag(sfConfig::get('sf_admin_module_web_dir') . '/images/' . $sort[1] . '.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin')));
    ?>
  <?php 
} else {
    ?>
    <?php 
    echo link_to(__('Created at', array(), 'messages'), '@fields', array('query_string' => 'sort=created_at&sort_type=asc'));
    ?>
  <?php 
}
?>
</th>
<?php 
end_slot();
include_slot('sf_admin.current_header');
slot('sf_admin.current_header');
?>
<th class="sf_admin_date sf_admin_list_th_updated_at">
  <?php 
if ('updated_at' == $sort[0]) {
    ?>
    <?php 
    echo link_to(__('Updated at', array(), 'messages'), '@fields', array('query_string' => 'sort=updated_at&sort_type=' . ($sort[1] == 'asc' ? 'desc' : 'asc')));
    ?>
    <?php 
    echo image_tag(sfConfig::get('sf_admin_module_web_dir') . '/images/' . $sort[1] . '.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin')));
    ?>
  <?php 
} else {
    ?>
    <?php 
<?php

slot('title', sprintf('Encaminhamento %s - Sindhealth', $atendimento->getEncaminhamento()));
include_partial('leftCol', array('links' => $lstLinks));
?>

<div id="center-column">
  <div class="top-bar">
    <h1>Encaminhamento</h1>
    <?php 
include_partial('search_historico');
?>
  </div>
  <div class="displayData">
    <p> Usuário: <?php 
echo $atendimento->getSfGuardUser()->getFirstName();
?>
</p>
    <p> Data/Hora: <?php 
echo $atendimento->getDateTimeObject('created_at')->format("d/m/Y H:i:s");
?>
</p>
    <p>
    <p>Descrição: <?php 
echo $atendimento->getDescricao();
?>
</p>
  </div>
</div>
<?php 
include_partial('rightCol');