当前位置: 首页>>代码示例>>PHP>>正文


PHP _h函数代码示例

本文整理汇总了PHP中_h函数的典型用法代码示例。如果您正苦于以下问题:PHP _h函数的具体用法?PHP _h怎么用?PHP _h使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_h函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: write

 public static function write($id, $ref = array())
 {
     switch ($id) {
         case 1:
             return _h('Gratulation, Du hast das Abzeichen "Populäre Frage" bekommen! Siehe <a href="#">dein Profil</a>.', $ref);
         default:
             return _h('Unbekannte Benachrichtigungsinformation');
     }
 }
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:9,代码来源:Notification.php

示例2: program_courses_field

function program_courses_field($prog)
{
    $field = '<div class="form-group">';
    $field .= '<label class="col-md-3 control-label">' . _t('Courses') . ' <a href="' . url('/') . 'program/' . _h($prog[0]['acadProgID']) . '/crse/"><img src="' . url('/') . 'static/common/theme/images/cascade.png" /></a></label>';
    $field .= '<div class="col-md-1">';
    $field .= '<input class="form-control" type="text" disabled value="X" class="center" />';
    $field .= '</div>';
    $field .= '</div>';
    echo $field;
}
开发者ID:parkerj,项目名称:degree-audit,代码行数:10,代码来源:functions.php

示例3: subject_code_dropdown

/**
 * Subject dropdown: shows general list of subjects and
 * if $subjectCode is not NULL, shows the subject attached
 * to a particular record.
 *
 * @deprecated since release 6.1.12
 * @see table_dropdown
 * @since 1.0.0
 * @param string $subjectCode
 *            - optional
 * @return string Returns the record key if selected is true.
 */
function subject_code_dropdown($subjectCode = NULL)
{
    _deprecated_function(__FUNCTION__, '6.1.12', 'table_dropdown');
    $app = \Liten\Liten::getInstance();
    $subj = $app->db->subject()->select('subjectCode,subjectName')->where('subjectCode <> "NULL"');
    $q = $subj->find(function ($data) {
        $array = [];
        foreach ($data as $d) {
            $array[] = $d;
        }
        return $array;
    });
    foreach ($q as $v) {
        echo '<option value="' . _h($v['subjectCode']) . '"' . selected($subjectCode, _h($v['subjectCode']), false) . '>' . _h($v['subjectCode']) . ' ' . _h($v['subjectName']) . '</option>' . "\n";
    }
}
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:28,代码来源:deprecated-function.php

示例4: format_date

 public static function format_date($time = 0)
 {
     $d = time() - $time;
     if ($d < 100) {
         return _h("{0} seconds ago", array($d));
     }
     if ($d < 3600) {
         return _h("{0} minutes ago", array(floor($d / 60)));
     }
     if ($d < 86400) {
         return _h("{0} hours ago", array(floor($d / 3600)));
     }
     if ($d < 500000) {
         return _h("{0} days ago", array(floor($d / 86400)));
     }
     return _h("on {0}", array(date(_h("M j 'y"), $time)));
 }
开发者ID:andreaskasper,项目名称:askbot_php,代码行数:17,代码来源:Question.php

示例5: array

        // The value/whats selected (if type is radio, select, etc)
        $entry_fields[$var]['choice'] = array();
        if ($type == 'date') {
            $entry_fields[$var]['class'] = array('edit_entry_date');
        } else {
            $entry_fields[$var]['class'] = array();
        }
        // Multiple classes
    }
}
addField('entry_id', 'hidden', __('Entry ID'));
$entry_fields['entry_id']['add'] = FALSE;
addField('submit1', 'submit', __('Save entry'));
addField('entry_title', 'text', __('Entry title'), __('What this is. Can be empty. Entryname is generated from the title and some other values.'));
addField('entry_type_id', 'select', __('Entry type'), __('What type of entry this is.'));
addField('resourcenum', 'text', _h('Resource number'), _h('Required number'));
addAfterField('resourcenum', '<br />M&aring; v&aelig;re <b><span id="resourcenum_count"></span>&nbsp;siffer</b>');
addField('empty', '', '');
addField('time_start', 'date', __('Start time'), __('When does this event start. Should be set in the calendar.'));
addID('time_start', 'time_start');
addField('time_end', 'date', __('End time'), __('When is the event finished.'));
addID('time_end', 'time_end');
addField('empty', '', '');
addField('area_id', 'select', __('Area'));
addID('area_id', 'selected_area_id');
addField('room_id', 'checkbox', __('Room'));
addField('empty', '', '');
addField('user_assigned', 'checkbox', __('Users assigned'), 'Brukere som skal v&aelig;re vert p&aring; arrangementet ' . 'eller skal v&aelig;re tilknyttet p&aring; en eller annen m&aring;te.');
addField('user_assigned2', 'text', __('Manuel user assigned'), __('If someone other than the normal users are assigned. Use this field to add his or her name.'));
addField('empty', '', '');
addField('customer_name', 'text', __('Customer'), __('Type in parts for the customers name to search.'));
开发者ID:hnJaermuseet,项目名称:JM-booking,代码行数:31,代码来源:edit_entry2.php

示例6: getUserValue

            echo getUserValue(_h($v['addedBy']), 'uname');
            ?>
</span>
							<span class="glyphicons single regular calendar"><i></i> <?php 
            echo date('D, M d, o', strtotime(_h($v['addDate'])));
            ?>
</span>
							<div class="separator bottom"></div>
							<?php 
            echo _escape(safe_truncate($v['news_content'], 125, ' . . .'));
            ?>
							<p class="margin-none strong"><a href="<?php 
            echo get_base_url();
            ?>
news/<?php 
            echo _h($v['news_slug']);
            ?>
/"><?php 
            echo _t('read more');
            ?>
</a></p>
						</div>
					</div>
				</div>
				<?php 
        }
    }
    ?>
			</div>
            <?php 
}
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:index.php

示例7: _e

                // is this a user, or a staff member. don't allow moving of staff members. (or maybe later we will)
                //$user_temp = module_user::get_user($ticket['user_id'],false);
                //if($user_temp['customer_id']<=0){
                ?>

                            <input type="button" name="new_customer" value="<?php 
                _e('New');
                ?>
" onclick="window.location.href='<?php 
                echo module_customer::link_open('new', false);
                ?>
&move_user_id=<?php 
                echo $ticket['user_id'];
                ?>
';" class="small_button"><?php 
                _h('Create a new customer and move this "Assigned Contact" to this new customer.');
                ?>

                            <?php 
                //}
            }
            ?>

                        <!-- <script type="text/javascript">
                            $(function(){
                                $('#change_customer_id').change(function(){
                                    // change our customer id.
                                    var new_customer_id = $(this).val();
                                    $.ajax({
                                        type: 'POST',
                                        url: '<?php 
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:ticket_admin_edit.php

示例8: ACL

$roleACL = new ACL(_h((int) $this->role[0]['userID']));
$role = $roleACL->getAllRoles('full');
foreach ($role as $k => $v) {
    echo '<tr><td>' . _h($v['Name']) . '</td>';
    echo "<td class=\"center\"><input type=\"radio\" name=\"role_" . _h($v['ID']) . "\" id=\"role_" . _h($v['ID']) . "_1\" value=\"1\"";
    if ($roleACL->userHasRole(_h($v['ID']))) {
        echo " checked=\"checked\"";
    }
    echo " /></td>";
    echo "<td class=\"center\"><input type=\"radio\" name=\"role_" . _h($v['ID']) . "\" id=\"role_" . _h($v['ID']) . "_0\" value=\"0\"";
    if (!$roleACL->userHasRole(_h($v['ID']))) {
        echo " checked=\"checked\"";
    }
    echo " /></td></tr>";
}
?>
		</tbody>
		<!-- // Table body END -->

	</table>
	<!-- // Table END -->
	<input type="hidden" name="action" value="saveRoles" />
	<input type="hidden" name="userID" value="<?php 
echo _h($this->role[0]['userID']);
?>
" />
	<button type="submit" name="Submit" class="btn btn-icon btn-primary glyphicons circle_ok"><i></i><?php 
echo _t('Save');
?>
</button>
</form>
开发者ID:jmcismail,项目名称:tinyPHP,代码行数:31,代码来源:role.php

示例9: _t

        echo _t('Actions');
        ?>
</button>
                            <button data-toggle="dropdown" class="btn btn-xs btn-primary dropdown-toggle" type="button">
                                <span class="caret"></span>
                                <span class="sr-only"><?php 
        echo _t('Toggle Dropdown');
        ?>
</span>
                            </button>
                            <ul role="menu" class="dropdown-menu dropup-text pull-right">
                                <li><a href="<?php 
        echo get_base_url();
        ?>
form/specialization/<?php 
        echo _h($value['specID']);
        ?>
/<?php 
        echo bm();
        ?>
"><?php 
        echo _t('View');
        ?>
</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
                <?php 
    }
}
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:specialization.php

示例10: csids

				<hr class="separator" />
				
				<!-- Form actions -->
				<div class="form-actions">
					<button type="submit"<?php 
echo csids();
?>
 class="btn btn-icon btn-primary glyphicons circle_ok"><i></i><?php 
echo _t('Save');
?>
</button>
                    <button type="button" class="btn btn-icon btn-primary glyphicons circle_minus" onclick="window.location='<?php 
echo get_base_url();
?>
sect/<?php 
echo _h($sect->courseSecID);
?>
/<?php 
echo bm();
?>
'"><i></i><?php 
echo _t('Cancel');
?>
</button>
				</div>
				<!-- // Form actions END -->
				
			</div>
		</div>
		<!-- // Widget END -->
		
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:30,代码来源:addnl-info.php

示例11: _t

$table .= '<th><b>' . _t('Days') . '</b></th>';
$table .= '<th><b>' . _t('Time') . '</b></th>';
$table .= '<th><b>' . _t('Location') . '</b></th>';
$table .= '<th><b>' . _t('Building') . '</b></th>';
$table .= '<th><b>' . _t('Room') . '</b></th>';
$table .= '</tr></thead>';
$table .= '<tbody>';
foreach ($catalog as $k => $v) {
    $table .= '<tr>';
    $table .= '<td>' . _h($v['courseSecCode']) . '</td>';
    $table .= '<td style="width:125px;">' . _h($v['secShortTitle']) . '</td>';
    $table .= '<td>' . get_initials(_h($v['facID']), 1) . '</td>';
    $table .= '<td>' . _h($v['minCredit']) . '</td>';
    $table .= '<td>' . _h($v['dotw']) . '</td>';
    $table .= '<td>' . _h($v['startTime']) . ' &nbsp;&nbsp; ' . _h($v['endTime']) . '</td>';
    $table .= '<td>' . _h($v['locationCode']) . '</td>';
    $table .= '<td>' . _h($v['buildingCode']) . '</td>';
    $table .= '<td>' . _h($v['roomCode']) . '</td>';
    $table .= '</tr>';
}
$table .= '</tbody>';
$table .= '</table>';
$pdf->AddPage();
$pdf->writeHTML($table, true, 0);
// ---------------------------------------------------------
// close and output PDF document
$pdf->Output('catalog-' . $catalog[0]['termCode'], 'I');
//============================================================+
// END OF FILE
//============================================================+
$app->view->stop();
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:catalog-pdf.php

示例12: isRegistrationOpen

}
?>
			</tbody>
			<!-- // Table body END -->
			
		</table>
		<!-- // Table END -->
		<hr class="separator" />
        		
		<!-- Form actions -->
		<div<?php 
echo isRegistrationOpen();
?>
 class="form-actions">
			<input type="hidden" name="regTerm" value="<?php 
echo _h(get_option('registration_term'));
?>
" />
            <?php 
if (student_can_register()) {
    ?>
			<button type="submit" class="btn btn-icon btn-primary glyphicons circle_plus"><i></i><?php 
    echo _t('Add to Cart');
    ?>
</button>
            <?php 
}
?>
		</div>
		<!-- // Form actions END -->
		</div>
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:index.php

示例13: _e

                            <input type="button" name="i" id="insert_saved" value="<?php 
            _e('Insert');
            ?>
" class="small_button task_defaults">
                            <input type="hidden" name="default_tasks_action" id="default_tasks_action" value="0">
                            <script type="text/javascript">
                                $(function(){
                                    $('#insert_saved').click(function(){
                                        // set a flag and submit our form.
                                        $('#default_tasks_action').val('insert_default');
                                        $('#job_form')[0].submit();
                                    });
                                });
                            </script>
                            <?php 
            _h('Here you can insert a previously saved set of default tasks.');
            ?>

                        </td>
                    </tr>
                    <?php 
        }
    }
    ?>

                </tr>

            </tbody>
        </table>
        <?php 
    $fieldset_data = array('heading' => array('title' => _l('Advanced'), 'type' => 'h3'), 'elements_before' => ob_get_clean());
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:job_admin_create.php

示例14: _h

?>
stu/add-prog/<?php 
echo _h($stu->stuID);
?>
/<?php 
echo bm();
?>
'"><i></i><?php 
echo _t('Add');
?>
</button>
					<button type="button" class="btn btn-icon btn-primary glyphicons circle_minus" onclick="window.location='<?php 
echo get_base_url();
?>
stu/<?php 
echo _h($stu->stuID);
?>
/<?php 
echo bm();
?>
'"><i></i><?php 
echo _t('Cancel');
?>
</button>
				</div>
				<!-- // Form actions END -->
				
			</div>
		</div>
        
        <!-- Modal -->
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:sacp.php

示例15: foreach

</th>
                    </tr>
                </thead>
                <!-- // Table heading END -->
                
                <!-- Table body -->
                <tbody>
                <?php 
$listPerms = $perms->getAllPerms('full');
if ($listPerms != '') {
    foreach ($listPerms as $k => $v) {
        echo '<tr class="gradeX">';
        echo '<td>' . _h($v['ID']) . '</td>';
        echo '<td>' . _h($v['Key']) . '</td>';
        echo '<td>' . _h($v['Name']) . '</td>';
        echo '<td class="text-center"><a href="' . get_base_url() . 'permission/' . _h($v['ID']) . '/" title="Edit Permission" class="btn btn-default"><i class="fa fa-edit"></i></a></td>';
        echo '</tr>' . "\n";
    }
}
?>
                    
                </tbody>
                <!-- // Table body END -->
                
            </table>
            <!-- // Table END -->
            
        </div>
    </div>
    <div class="separator bottom"></div>
    <!-- // Widget END -->
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:index.php


注:本文中的_h函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。