public static function sendNotification($fromMember, $toMember, $diaryId)
 {
     $url = '/diary/' . $diaryId;
     sfApplicationConfiguration::getActive()->loadHelpers(array('I18N'));
     $message = format_number_choice('[1]1 diary has new comments|(1,Inf]%1% diaries have new comments', array('%1%' => '1'), 1);
     opNotificationCenter::notify($fromMember, $toMember, $message, array('category' => 'other', 'url' => $url, 'icon_url' => null));
 }
Ejemplo n.º 2
0
 /**
  * Выбрать множественную форму склонения из словаря
  *
  * @param  string $text      - ключ словаря
  * @param  int    $number    - число
  * @param  string $catalogue - словарь
  * @param  array  $args      - аргументы оригинального хелпера __()
  * @return string
  */
 public static function pluralForm($text, $number, $args = array(), $catalogue = 'messages')
 {
     $index = abs((int) $number);
     if ($index > 100) {
         $index %= 100;
     }
     if ($index > 20) {
         $index %= 10;
     }
     switch ($index) {
         case 0:
             $index = 0;
             break;
         case 1:
             $index = 1;
             break;
         case 2:
         case 3:
         case 4:
             $index = 2;
             break;
         default:
             $index = 5;
     }
     $args = array_merge($args, array('%n%' => $number));
     return format_number_choice($text, $args, $index, $catalogue);
 }
 public static function sendNewCommentNotification($fromMember, $toMember, $topicId)
 {
     $rootPath = sfContext::getInstance()->getRequest()->getRelativeUrlRoot();
     $url = $rootPath . '/communityTopic/' . $topicId;
     sfApplicationConfiguration::getActive()->loadHelpers(array('I18N'));
     $message = format_number_choice('[1]1 topic has new comments|(1,Inf]%1% topics have new comments', array('%1%' => '1'), 1);
     opNotificationCenter::notify($fromMember, $toMember, $message, array('category' => 'other', 'url' => $url, 'icon_url' => null));
 }
Ejemplo n.º 4
0
 public function executeSearch(sfWebRequest $request)
 {
     $this->setCommonValues('gtu', 'code', $request);
     $this->form = new GtuFormFilter();
     $this->is_choose = $request->getParameter('is_choose', '') == '' ? 0 : intval($request->getParameter('is_choose'));
     if ($request->getParameter('gtu_filters', '') !== '') {
         $this->form->bind($request->getParameter('gtu_filters'));
         if ($this->form->isValid()) {
             $query = $this->form->getQuery();
             if ($request->getParameter('format') == 'json' || $request->getParameter('format') == 'text') {
                 $query->orderBy($this->orderBy . ' ' . $this->orderDir)->andWhere('latitude is not null');
                 $this->setLayout(false);
                 if ($request->getParameter('format') == 'json') {
                     $query->Limit($this->form->getValue('rec_per_page'));
                     $this->getResponse()->setContentType('application/json');
                     $this->items = $query->execute();
                     $this->setTemplate('geojson');
                     return;
                 } else {
                     $nbr_records = $query->count();
                     sfContext::getInstance()->getConfiguration()->loadHelpers('I18N');
                     $str = format_number_choice('[0]No Results Retrieved|[1]Your query retrieved 1 record|(1,+Inf]Your query retrieved %1% records out of %2%', array('%1%' => min($nbr_records, $this->form->getValue('rec_per_page')), '%2%' => $nbr_records), $nbr_records);
                     return $this->renderText($str);
                 }
             } else {
                 $query->orderBy($this->orderBy . ' ' . $this->orderDir);
                 $this->pagerLayout = new PagerLayoutWithArrows(new DarwinPager($query, $this->currentPage, $this->form->getValue('rec_per_page')), new Doctrine_Pager_Range_Sliding(array('chunk' => $this->pagerSlidingSize)), $this->getController()->genUrl($this->s_url . $this->o_url) . '/page/{%page_number}');
                 // Sets the Pager Layout templates
                 $this->setDefaultPaggingLayout($this->pagerLayout);
                 // If pager not yet executed, this means the query has to be executed for data loading
                 if (!$this->pagerLayout->getPager()->getExecuted()) {
                     $this->items = $this->pagerLayout->execute();
                 }
             }
             $gtu_ids = array();
             foreach ($this->items as $i) {
                 $gtu_ids[] = $i->getId();
             }
             $tag_groups = Doctrine::getTable('TagGroups')->fetchByGtuRefs($gtu_ids);
             foreach ($this->items as $i) {
                 $i->TagGroups = new Doctrine_Collection('TagGroups');
                 foreach ($tag_groups as $t) {
                     if ($t->getGtuRef() == $i->getId()) {
                         $i->TagGroups[] = $t;
                     }
                 }
             }
         }
     }
 }
Ejemplo n.º 5
0
<tfoot>
    <tr>
        <th colspan="6">
            <?php 
if ($pager->haveToPaginate()) {
    ?>
                <?php 
    include_partial('report/pagination', array('pager' => $pager, 'url' => $url));
    ?>
            <?php 
}
?>

            <?php 
echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults(), 'sf_admin');
?>
            <?php 
if ($pager->haveToPaginate()) {
    ?>
                <?php 
    echo __('(page %%page%%/%%nb_pages%%)', array('%%page%%' => $pager->getPage(), '%%nb_pages%%' => $pager->getLastPage()), 'sf_admin');
    ?>
            <?php 
}
?>
        </th>
    </tr>
</tfoot>
Ejemplo n.º 6
0
 of <?php 
echo $profile->getCampus();
?>
</span>
  <span>Department: </span>
  <span><?php 
echo $profile->getDepartment();
?>
 / <?php 
echo $profile->getSubdepartment();
?>
</span>
  <div><?php 
echo image_tag($profile->getThumbnail());
?>
</div>
  <span>Cothink Rating: </span>
  <span><?php 
echo $profile->getRating();
?>
 (<?php 
echo $profile->getRatingCount();
?>
)</span>
  <span>Privacy: </span>
  <span><?php 
echo format_number_choice('[0]High[1]High|[2]Medium|[3]Low|(3,+Inf]Unknown', '', $profile->getPrivacyLevel());
?>
</span>
</div>
Ejemplo n.º 7
0
echo link_to($post->getTitle(), 'sfSimpleBlogPostAdmin/edit?id=' . $post->getId());
?>
  <?php 
if (!$post->getIsPublished()) {
    echo __('(not published)');
}
?>
</h2>

<i><?php 
echo __('Posted by %1% on %2%, tagged %3%', array('%1%' => $post->getAuthor(), '%2%' => format_date($post->getCreatedAt('U')), '%3%' => $post->getTagsAsString()));
?>
</i>
<div>
<?php 
echo $post->getExtract();
?>
</div>
(<?php 
echo format_number_choice('[0]no comment|[1]one comment|(1,+Inf]%1% comments', array('%1%' => $post->getNbComments()), $post->getNbComments());
?>
)
<?php 
if (!$post->allowComments()) {
    ?>
(<?php 
    echo __('Comments closed');
    ?>
)
<?php 
}
Ejemplo n.º 8
0
  
  <div class="details">
  <?php 
echo __('Posted by %1% on %2%', array('%1%' => $post->getAuthor(), '%2%' => format_date($post->getPublishedAt('U'))));
?>
  <?php 
if ($tags = $post->getSfSimpleBlogTags(null, null, ESC_RAW)) {
    ?>
    <?php 
    echo __('in %1%', array('%1%' => get_tag_links($tags)));
    ?>
  <?php 
}
?>
  <?php 
if ($in_list) {
    ?>
  - <?php 
    echo link_to_post($post, format_number_choice('[0]no comment|[1]one comment|(1,+Inf]%1% comments', array('%1%' => $post->getNbComments()), $post->getNbComments()), '#comments');
    ?>
  <?php 
}
?>
  </div>
  
  <div class="content">
    <?php 
echo $post->getContent(ESC_RAW);
?>
  </div>
</div>
Ejemplo n.º 9
0
    if ($jotag_object) {
        ?>
						<input type="hidden" name="custom" value="RENEW" />
						<input type="hidden" name="item_name" value="<?php 
        echo format_number_choice("[1]Personalized JoTAG - Extra %count% year|[1,+Inf]Personalized JoTAG - Extra %count% years", array("%count%" => $payment->getDuration()), $form["duration"]->getValue());
        ?>
 (<?php 
        echo $payment->getTag()->getJotag();
        ?>
)" />
					<?php 
    } else {
        ?>
						<input type="hidden" name="custom" value="NEW" />
						<input type="hidden" name="item_name" value="<?php 
        echo format_number_choice("[1]Personalized JoTAG - %count% year|[1,+Inf]Personalized JoTAG - %count% years", array("%count%" => $payment->getDuration()), $form["duration"]->getValue());
        ?>
 (<?php 
        echo $payment->getJotag();
        ?>
)" />
					<?php 
    }
    ?>
					<input type="hidden" name="item_number" value="1" />
					<input type="hidden" name="amount" value="<?php 
    echo $payment->getAmount();
    ?>
" />
					<input type="hidden" name="rm" value="2" />
					<input type="hidden" name="return" value="<?php 
Ejemplo n.º 10
0
<h1><?php 
echo __('Close periods for %room_name%', array('%room_name%' => $room->getName()));
?>
</h1>

<p>
<?php 
echo format_number_choice('[0]No close periods in the database.|[1]There is actually one close period in the database.|(1,+Inf]There is actually %count% close periods in the database.', array('%count%' => $count), $count);
?>
</p>

<p>
	<?php 
echo __('You may also %room_link%.', array('%room_link%' => link_to(__('go back to the room page'), 'room/index')));
?>
</p>

<?php 
if ($count > 0) {
    ?>

<table class="list">
  <thead>
    <tr>
			<th class="small"></th>
			<th><?php 
    echo sort_link('closeperiod', 'index', 'start', __('Start'), $sort_direction, $sort_column, array('roomId' => $room->getId()));
    ?>
</th>
			<th><?php 
    echo sort_link('closeperiod', 'index', 'stop', __('Stop'), $sort_direction, $sort_column, array('roomId' => $room->getId()));
Ejemplo n.º 11
0
	        <td><?php 
            echo $task->getSfGuardUser()->getProfile();
            ?>
</td>
	        <td><?php 
            echo format_date($task->getBegin()) . ' - ' . format_date($task->getFinish());
            ?>
</td>
	        <td><?php 
            foreach ($task->getUsers() as $user) {
                echo $user->getSfGuardUser()->getProfile() . '<br />';
            }
            ?>
</td>
	        <td><?php 
            echo format_number_choice('[0]Complete|[1]In Progress|[2]Pending/Planning|(2,+Inf]Unknown task status code)', '', $task->getStatus());
            ?>
</td>
	      <?php 
        } else {
            ?>
	    		<td colspan="4"><s><?php 
            echo link_to($task->getName(), 'tasks/show?slug=' . $task->getSlug());
            ?>
</td>
	    		<td>complete</td>
	    	<?php 
        }
        ?>
      </tr>
      <?php 
Ejemplo n.º 12
0
<h1><?php 
echo __('Zone list');
?>
</h1>

<noscript>
<?php 
include_partial('tools/messageBox', array('class' => 'warning', 'title' => __('Javascript disabled'), 'msg' => __('JavaScript is disabled. Deletion and move functions disabled due to security measures.'), 'showImg' => true));
?>
</noscript>

<p>
<?php 
echo format_number_choice('[0]No zones in the database.|[1]There is actually one zone in the database.|(1,+Inf]There is actually %count% zones in the database.', array('%count%' => $zone_total_count), $zone_total_count);
?>
</p>

<?php 
if (count($zone_list) > 0) {
    ?>
<table class="tree list">
	<thead>
		<tr>
			<th colspan="<?php 
    echo $recursion + 1;
    ?>
"><?php 
    echo __('Zones');
    ?>
</th>
			<th><?php 
Ejemplo n.º 13
0
<?php

slot('title', 'Successfly updated');
?>
<div class="page" id="mass_action_status">
  <h1><?php 
echo __('Action Status :');
?>
</h1>
  <div>
    <?php 
echo format_number_choice('[0] No Item modified|[1] Everything seems to go well. Your action was applied to 1 record |(1,+Inf] Everything seems to go well. Your action was applied to %1% records', array('%1%' => $nb_items), $nb_items);
?>
  </div>
  <p>
    <?php 
echo link_to('Do another action', 'massactions/index');
?>
    <?php 
echo link_to('Go to the board', '@homepage');
?>
  </p>
</div>
Ejemplo n.º 14
0
<?php 
$i = 1;
foreach ($pager->getResults() as $nota) {
    $odd = fmod(++$i, 2);
    ?>
<tr class="sf_admin_row_<?php 
    echo $odd;
    ?>
">
<?php 
    include_partial('notas_td_tabular', array('nota' => $nota));
    //include_partial('notas_td_actions', array('nota' => $nota))
    ?>
</tr>
<?php 
}
?>
</tbody>
<tfoot>
<tr><th colspan="4">
<div class="float-right">
<?php 
$cuantos = $pager->getNbResults();
$texto = format_number_choice('[0] no hay notas|[1] hay 1 nota|(1,+Inf] hay %1% notas', array('%1%' => $cuantos), $cuantos);
echo link_to($texto, 'notas/list');
?>
</div>
</th></tr>
</tfoot>
</table>
</li>
    <?php 
}
?>
  </ul>
    
  <div class="forum_figures">
    <?php 
echo format_number_choice('[1]1 message, no reply|(1,+Inf]%posts% messages', array('%posts%' => $post_pager->getNbResults()), $post_pager->getNbResults(), 'sfSimpleForum');
?>
 
    <?php 
if (sfConfig::get('app_sfSimpleForumPlugin_count_views', true)) {
    ?>
    - <?php 
    echo format_number_choice('[0,1]1 view|(1,+Inf]%views% views', array('%views%' => $topic->getNbViews()), $topic->getNbViews(), 'sfSimpleForum');
    ?>
    <?php 
}
?>
    <?php 
if (sfConfig::get('app_sfSimpleForumPlugin_use_feeds', true)) {
    ?>
      <?php 
    echo link_to(image_tag('/sfSimpleForumPlugin/images/feed-icon.png', 'align=top'), 'sfSimpleForum/topicFeed?id=' . $topic->getId() . '&stripped_title=' . $topic->getStrippedTitle(), 'title=' . $feed_title);
    ?>
    <?php 
}
?>
    
  </div>
<?php use_helper('I18N') ?>
<?php if (method_exists($object instanceof sfOutputEscaper ? $object->getRawValue() : $object, 'allowComments')): ?>
  <?php $enable_comment = sfNestedCommentConfig::isCommentEnabled() && $object->allowComments() ?>
<?php else: ?>
  <?php $enable_comment = sfNestedCommentConfig::isCommentEnabled() ?>
<?php endif; ?>

<?php if(0 < $nb_comments = $object->getNbApprovedComments()): ?>
  <h3 id="comments-title"><?php echo format_number_choice('[1]One comment so far|(1,+Inf]%1% comments so far', array('%1%' => $nb_comments), $nb_comments) ?></h3>
<?php endif; ?>
<div id="sfNestedComment_comment_list">
  <?php include_partial('sfNestedComment/comment_list', array('comments' => $comments)) ?>
</div>
<?php if(!$enable_comment): ?>
  <div class="comment-closed"><?php echo __('Comments are closed.') ?></div>
<?php elseif($sf_user->getFlash('add_comment') == 'moderated'): ?>
  <div class="comment-moderated"><?php echo __('Your comment has been submitted and is awaiting moderation') ?></div>
<?php endif; ?>
<?php if($enable_comment): ?>
  <?php include_partial('sfNestedComment/add_comment', array('commentForm' => $commentForm)) ?>
<?php endif; ?>
Ejemplo n.º 17
0
        <h2><?php 
echo link_to(Text::denominazioneAttoShort($atto), '@singolo_atto?id=' . $atto->getId());
?>
</h2>
      </li>
      <?php 
if ($nb_emendamenti > 0) {
    ?>
        <li class="<?php 
    echo $current == 'emendamenti' ? 'current' : '';
    ?>
">
          <h5><?php 
    echo link_to(format_number_choice('[1]Un emendamento|(1,+Inf]%1% emendamenti', array('%1%' => $nb_emendamenti), $nb_emendamenti), '@emendamenti_atto?id=' . $atto->getId());
    ?>
</h5>
        </li>    
      <?php 
}
?>
      <li class="<?php 
echo $current == 'commenti' ? 'current' : '';
?>
">
        <h5><?php 
echo link_to(format_number_choice('[0]Lascia un commento|[1]Un commento|(1,+Inf]%1% commenti', array('%1%' => $nb_comments), $nb_comments), '@commenti_atto?id=' . $atto->getId());
?>
</h5>
      </li>
    </ul>
</nav>
Ejemplo n.º 18
0
<?php

use_helper('I18N');
use_helper('Javascript');
?>
<span id="sf_countable_<?php 
echo $token;
?>
">
  <?php 
echo format_number_choice('[0]Never viewed|[1]Viewed one time|(1,+Inf]Viewed %1% times', array('%1%' => $counter), $counter);
?>
</span>
<?php 
if (!$sf_request->getCookie($token) == $token) {
    ?>
  <?php 
    echo javascript_tag(remote_function(array('update' => 'sf_countable_' . $token, 'url' => '@sf_counter?sf_countable_token=' . $token)));
}
Ejemplo n.º 19
0
		<?php 
    include_partial('searchForm', array('form' => $form));
    ?>
	</div>

	<p>
		<?php 
    echo __('You can also %clear_filter_link%.', array('%clear_filter_link%' => link_to(__('clear the filter'), 'room/index?clear=')));
    ?>
	</p>
<?php 
} else {
    ?>
	<p>
		<?php 
    echo format_number_choice('[0]No rooms in the database.|[1]There is actually one room in the database.|(1,+Inf]There is actually %count% rooms in the database.', array('%count%' => $count), $count);
    ?>
	</p>

	<p>
		<?php 
    echo __('If you want a better view on room organization, you can go to %zone_link%.', array('%zone_link%' => link_to(__('the zone view'), 'zone/index')));
    ?>
	</p>

	<p>
		<?php 
    echo __('You can also %search_link%.', array('%search_link%' => link_to(__('search for a specific room'), 'room/search')));
    ?>
	</p>
<?php 
Ejemplo n.º 20
0
             $date = $timedate;
         }
         echo !$mobile_version ? '</td><td>' : ' - ';
         echo field_activities_data($outing, array('raw' => true));
         echo !$mobile_version ? '</td><td>' : ' - ';
         $author_info =& $outing['versions'][0]['history_metadata']['user_private_data'];
         $georef = '';
         if (!$outing->getRaw('geom_wkt') instanceof Doctrine_Null) {
             $georef = ($mobile_version ? ' - ' : '') . picto_tag('action_gps', __('has GPS track'));
         }
         $images = '';
         if (isset($outing['nb_images'])) {
             if ($mobile_version) {
                 $images = ' - ' . picto_tag('picto_images_light') . '&nbsp;' . $outing['nb_images'];
             } else {
                 $images = picto_tag('picto_images_light', format_number_choice('[1]1 image|(1,+Inf]%1% images', array('%1%' => $outing['nb_images']), $outing['nb_images']));
             }
         }
         $outing_lang = $outing->get('culture');
         echo link_to($outing->get('name'), '@document_by_id_lang_slug?module=outings&id=' . $outing->get('id') . '&lang=' . $outing_lang . '&slug=' . get_slug($outing), array('hreflang' => $outing_lang)) . (!$mobile_version ? '</td><td>' : '') . $georef . (!$mobile_version ? '</td><td>' : '') . $images . (!$mobile_version ? '</td><td>' : ' - ') . link_to($author_info['topo_name'], '@document_by_id?module=users&id=' . $author_info['id']);
         echo !$mobile_version ? '</td></tr>' : '</li>';
     }
     echo !$mobile_version ? '</tbody></table>' : '</ul>';
     if (count($routes_outings) > 1) {
         echo simple_pager_navigation($count, count($routes_outings), 'routings_group_');
     }
     ?>
    </div>
 <?php 
 }
 // routes outings list link
	  			<tr id="pol_<?php 
        echo $politician->getId();
        ?>
">
	  				<th scope="row"><p class="politician-id">
	  				  <?php 
        echo image_tag(OppPoliticoPeer::getThumbUrl($politician->getId()), 'icona parlamentare');
        ?>
	  				  <?php 
        echo link_to($politician, '@parlamentare?' . $politician->getUrlParams());
        ?>
</p>
	  				</th>
	  				<td><p class="float-right"><a class="btn-open-table action" href="#">
	  				  <?php 
        echo format_number_choice('[0]|[1]1 nuova|(1,+Inf]%1% nuove', array('%1%' => $politician->getNNewNews($sf_user->getAttribute('last_login', null, 'subscriber'))), $politician->getNNewNews($sf_user->getAttribute('last_login', null, 'subscriber')));
        ?>
                    <?php 
        if ($politician->getLastNews()) {
            ?>
 
	            - ultima: <?php 
            echo $politician->getLastNews()->getDate('d/m/Y');
            ?>
                    <?php 
        }
        ?>
 
	  				</a></p></td>
	  				<td>
	            <!-- rimozione dal monitoraggio -->
Ejemplo n.º 22
0
            <th colspan="6">
              <?php 
        if ($pager->haveToPaginate()) {
            ?>
                <?php 
            include_partial('sfGuardGroup/pagination', array('pager' => $pager));
            ?>
              <?php 
        }
        ?>

              <?php 
        //echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $pager->getNbResults()), $pager->getNbResults(), 'sf_admin')
        ?>
              <?php 
        echo format_number_choice('[0] no result|[1] 1 result|(1,+Inf] %1% results', array('%1%' => $results), $results, 'sf_admin');
        ?>
              <?php 
        if ($pager->haveToPaginate()) {
            ?>
                <?php 
            echo __('(page %%page%%/%%nb_pages%%)', array('%%page%%' => $pager->getPage(), '%%nb_pages%%' => $pager->getLastPage()), 'sf_admin');
            ?>
              <?php 
        }
        ?>
            </th>
          </tr>
        </tfoot>
      </table>
    <?php 
Ejemplo n.º 23
0
    <?php 
    echo form_error('formulario{unidad_familiar}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>
  
  <?php 
$valorSeleccionado = $formulario->getUnidadFamiliar() ? $formulario->getUnidadFamiliar() : '0';
$html = "";
$html .= "<ul class=\"sf_admin_checklist\">\n";
for ($i = 1; $i <= count($opciones); $i++) {
    $html .= "<li>";
    $html .= radiobutton_tag('formulario[unidad_familiar]', $i, $valorSeleccionado == $i, 'id=formulario_unidad_familiar_' . $i);
    $html .= "<label for=formulario_unidad_familiar_" . $i . ">";
    $html .= format_number_choice('[1] 1 persona|(1,4] %1% personas|(4,+Inf] más de 4 personas', array('%1%' => $i), $i);
    $html .= "</label>";
    $html .= "</li>\n";
}
$html .= "</ul>\n";
echo $html;
?>
    </div>
</div>


<div class="form-row">
  <?php 
echo label_for('formulario[entrega]', __($labels['formulario{entrega}']), '');
?>
  <div class="content<?php 
Ejemplo n.º 24
0
<h1><?php 
echo __('My messages');
?>
</h1>

<p>
	<?php 
echo format_number_choice('[0]No unread messages.|[1]You have one unread message in your mailbox.|(1,+Inf]You have %unread_count% unread messages in your mailbox.', array('%count%' => $unread_count), $unread_count);
?>
</p>

<?php 
if (count($message_list) > 0) {
    ?>

<table class="list">
  <thead>
    <tr>
		<th><?php 
    echo sort_link('message', 'index', 'subject', __('Subject'), $sort_direction, $sort_column);
    ?>
</th>
		<th><?php 
    echo sort_link('message', 'index', 'sender', __('From'), $sort_direction, $sort_column);
    ?>
</th>
		<th><?php 
    echo sort_link('message', 'index', 'recipient', __('To'), $sort_direction, $sort_column);
    ?>
</th>
		<th><?php 
Ejemplo n.º 25
0
foreach ($pager->getResults() as $historico_documento) {
    $odd = fmod(++$i, 2);
    ?>
<tr class="sf_admin_row_<?php 
    echo $odd;
    ?>
">
<?php 
    include_partial('list_td_tabular', array('historico_documento' => $historico_documento));
    include_partial('list_td_actions', array('historico_documento' => $historico_documento));
    ?>
</tr>
<?php 
}
?>
</tbody>
<tfoot>
<tr><th colspan="6">
<div class="float-right">
<?php 
echo pager_navigation($pager, 'historico_documentos/list');
?>
</div>
<?php 
$cuantos = $pager->getNbResults();
echo format_number_choice('[0] no hay resultados|[1] 1 resultado|(1,+Inf] %1% resultados', array('%1%' => $cuantos), $cuantos);
?>
</th></tr>
</tfoot>
</table>
Ejemplo n.º 26
0
<div class="dparts monthlyCalendarTable"><div class="parts">
<div class="partsHeading"><h3><?php 
$is_community ? printf('[%s] ', $community->name) : '';
echo format_number_choice('[0]%ym%|[1]%ym% of %f%', array('%ym%' => op_format_date(mktime(0, 0, 0, $ym['month_disp'], 1, $ym['year_disp']), 'XCalendarMonth'), '%f%' => $member->name), $is_community ? 1 : $isSelf ? 0 : 1);
?>
</h3></div>

<?php 
if (!$is_community && $isSelf && opConfig::get('op_calendar_google_data_api_is_active', false)) {
    ?>
<div class="block topBox">
<p class="note_schedule">
<?php 
    if (opGoogleCalendarOAuth::getInstance()->isNeedRedirection()) {
        ?>
&nbsp;<?php 
        echo link_to(__('Enable to Google Calendar\'s permission settings'), '@calendar_api');
    } else {
        ?>
&nbsp;<?php 
        echo link_to(__('Add schedule to Google Calendar'), '@calendar_api_import');
    }
    ?>
</p>
</div>
<?php 
}
?>
<div class="block topBox">
<?php 
if (!$is_community && $isSelf) {
Ejemplo n.º 27
0
    ?>
</span><span class="red thumb-down"><?php 
    echo $ddl->getUtContr();
    ?>
</span>
            <p><?php 
    echo link_to($ddl->getNbCommenti() . ' <strong>commenti</strong>', '#');
    ?>
</p>
          </div>
        </td>	
      </tr>
    <?php 
}
?>
    <tr>
      <td align="center" colspan='5'>
        <?php 
echo pager_navigation($pager, '@argomento_nonleg?triple_value=' . $triple_value);
?>
      </td>
    </tr>
    <tr>
      <td align="center" colspan='5'>
        <?php 
echo format_number_choice('[0] nessun risultato|[1] 1 risultato|(1,+Inf] %1% risultati', array('%1%' => $pager->getNbResults()), $pager->getNbResults());
?>
	  </td>
    </tr>
  </tbody>		  
</table>
Ejemplo n.º 28
0
echo $partido->getNombre();
?>
    (<?php 
echo $partido->getAbreviatura();
?>
)
    <?php 
include_partial('general/sparkline_box', array('reviewable' => $partido, 'id' => 'sparkline_pt_' . $partido->getId()));
?>
    
    <span class="rank">
      <?php 
echo format_number_choice('[0]%1% votos positivos|[1]1 voto positivo|(1,+Inf]%1% votos positivos', array('%1%' => $partido->getSumu()), $partido->getSumu());
?>
      <?php 
echo format_number_choice('[0] y %1% votos negativos|[1] y 1 voto negativo|(1,+Inf] y %1% votos negativos', array('%1%' => $partido->getSumd()), $partido->getSumd());
?>
    </span>
  </h2>

  <div id="content">
    <div title="<?php 
echo secureString($partido->getNombre());
?>
" id="photo">
      <?php 
echo image_tag(S3Voota::getImagesUrl() . '/partidos/' . $image, 'alt="' . __('Logo de %1%', array('%1%' => $partido->getAbreviatura())) . '"');
?>
      <div class="vote">
        <h3><?php 
echo __('Voota sobre');
Ejemplo n.º 29
0
			<?php 
if (sumu($politico) > 0 && sumd($politico) > 0) {
    ?>
				<?php 
    echo str_replace(" ", "&nbsp;", format_number_choice('[0]0|[1]1 positivo|(1,+Inf]%1% positivos', array('%1%' => sumu($politico)), sumu($politico)));
    ?>
				<?php 
    // echo str_replace  (" ", "&nbsp;", format_number_choice('[0]0|[1] y 1 negativo|(1,+Inf] y %1% negativos', array('%1%' => $politico->getSumd()), $politico->getSumd()))
    ?>
			<?php 
} elseif (sumu($politico) > 0) {
    ?>
				<?php 
    echo format_number_choice('[0]0|[1]1 positivo|(1,+Inf]%1% positivos', array('%1%' => sumu($politico)), sumu($politico));
    ?>
				
			<?php 
} elseif (sumd($politico) > 0) {
    ?>
				<?php 
    echo format_number_choice('[0]0|[1]1 negativo|(1,+Inf]%1% negativos', array('%1%' => sumd($politico)), sumd($politico));
    ?>
				
			<?php 
}
?>
  
		</span>
	</div>
</li>
Ejemplo n.º 30
0
  <div style="float:left;max-width:80%;">
    <h3><?php 
    echo link_to($feature->getId() . '. ' . $feature->getTitle(), 'features/show?feature=' . $feature->getUuid(), array('id' => $feature->getId()));
    ?>
 (<?php 
    echo format_number_choice('[' . sfConfig::get('app_feature_status_closed') . ']Closed|[' . sfConfig::get('app_feature_status_open') . ']Open|[' . sfConfig::get('app_feature_status_implemented') . ']Implemented|[' . sfConfig::get('app_feature_status_fixed') . ']Fixed', array('%1%' => $feature->getStatus()), $feature->getStatus());
    ?>
)<span id="indicator_<?php 
    echo $feature->getUuid();
    ?>
" style="display:none;"><?php 
    echo image_tag('indicator.gif');
    ?>
 Casting Vote...</span></h3>
    <h4><?php 
    echo __('A %type% Suggested by %1% %2% ago, regarding %category%', array('%1%' => link_to($feature->getsfGuardUser()->getProfile(), '@show_user?user='******'%2%' => distance_of_time_in_words($feature->getCreatedAt('U')), '%type%' => format_number_choice('[' . sfConfig::get('app_feature_type_bug') . ']Bug Report|[' . sfConfig::get('app_feature_type_feature') . ']Feature Request', array(), $feature->getType()), '%category%' => $feature->getCategoryInWords()));
    ?>
</h4>
    <p><?php 
    echo $feature->getDescription();
    ?>
</p>
  </div>
  <hr class="clear" />
</div>
<?php 
}
?>
<hr class="clear" />