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


PHP nbs函数代码示例

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


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

示例1: comments

function comments($comments, $object_id, $object, $usernames, $format, $return = 'agilan/index')
{
    $string = "";
    $string .= "<ol class='comments'>";
    if (isset($comments[$object_id]) && count($comments[$object_id]) > 0) {
        foreach ($comments[$object_id] as $kk => $ll) {
            $CID = $ll->user_id;
            $CU = $usernames[$ll->user_id];
            $stamp = mysql_to_unix($ll->created);
            $string .= "<li><b>" . $CU . ":</b> <small>" . $ll->comment . "<br/>" . mdate($format, $stamp) . "</small></li>";
        }
    } else {
        $string .= nbs();
    }
    $string .= "<li class='last'>";
    $string .= form_open('comments/index');
    $input = array('name' => 'comment', 'id' => 'comment', 'size' => 35);
    $string .= form_input($input);
    $string .= form_hidden('object', $object);
    $string .= form_hidden('object_id', $object_id);
    $string .= form_hidden('return_url', $return);
    $string .= form_submit('add comment', 'comment');
    $string .= form_close();
    $string .= "</li>";
    $string .= "</ol>";
    echo $string;
}
开发者ID:Ahmad-Hilali,项目名称:agilan,代码行数:27,代码来源:social_pi.php

示例2: option_recursive

 function option_recursive($data = [], $value = NULL, $label = NULL, $default_option = NULL, $arr_option = [], $depth = 0)
 {
     $separator = NULL;
     for ($i = 0; $i < $depth; $i++) {
         $separator .= nbs(4);
     }
     if (!empty($default_option)) {
         if (is_array($default_option)) {
             foreach ($default_option as $key => $val) {
                 $arr_option[$key] = $val;
             }
         } else {
             $arr_option[0] = $default_option;
         }
     }
     if (!empty($data)) {
         foreach ($data as $val) {
             $d = $val['data'];
             $arr_option[$d[$value]] = $separator . $d[$label];
             if (!empty($val['sub'])) {
                 $newdepth = $depth + 1;
                 $arr_option = option_recursive($val['sub'], $value, $label, NULL, $arr_option, $newdepth);
             }
         }
     }
     return $arr_option;
 }
开发者ID:soniibrol,项目名称:package,代码行数:27,代码来源:recursive_helper.php

示例3: get_sorted_cats_select

 public function get_sorted_cats_select($exclude = array())
 {
     $cats = $this->get_sorted_cats($exclude);
     $ret['0'] = lang('none');
     foreach ($cats as $cat) {
         $ret[$cat['cat_id']] = nbs(5 * $cat['level']) . $cat['cat_name'];
     }
     return $ret;
 }
开发者ID:alexhava,项目名称:elixirjuice,代码行数:9,代码来源:categories_model.php

示例4: rights_get

 /**
  * rights_get function.
  * 
  * @access public
  * @return void
  */
 public function rights_get()
 {
     if (!$this->auth->loggedin()) {
         redirect('user/login');
     }
     $uid = intval($this->auth->userid());
     $role_id = $this->get('role');
     if (!$role_id) {
         show_error('Invalid request.', 500);
     } else {
         $role_rights = $this->rights_model->get_for_role($role_id);
         $rights_html = ul(array(form_label(form_checkbox(array('name' => 'use_system', 'id' => 'use_system', 'value' => $role_id, 'checked' => $role_rights['use_system'] ? true : false)) . nbs() . ucfirst(lang('use_system')), 'use_system'), form_label(form_checkbox(array('name' => 'add_members', 'id' => 'add_members', 'value' => $role_id, 'checked' => $role_rights['add_members'] ? true : false)) . nbs() . ucfirst(lang('add_members')), 'add_members'), form_label(form_checkbox(array('name' => 'add_users', 'id' => 'add_users', 'value' => $role_id, 'checked' => $role_rights['add_users'] ? true : false)) . nbs() . ucfirst(lang('add_users')), 'add_users')), array('class' => 'no-bullet'));
         $this->output->set_output($rights_html);
     }
 }
开发者ID:nyfagel,项目名称:klubb,代码行数:21,代码来源:role.php

示例5: imc

 function imc($talla, $peso)
 {
     $cadena = '';
     if ($talla > 0 && $peso > 0) {
         $talla = $talla / 100;
         $imc = $peso / ($talla * $talla);
         if ($imc < 16) {
             $res = "Delgadez severa";
         } else {
             if ($imc >= 16 && $imc <= 16.99) {
                 $res = "Delgadez moderada";
             } else {
                 if ($imc >= 17 && $imc <= 18.49) {
                     $res = "Delgadez no muy pronunciada";
                 } else {
                     if ($imc >= 18.5 && $imc <= 24.99) {
                         $res = "Normal";
                     } else {
                         if ($imc >= 25 && $imc <= 29.99) {
                             $res = "Preobeso";
                         } else {
                             if ($imc >= 30 && $imc <= 34.99) {
                                 $res = "Obeso tipo I";
                             } else {
                                 if ($imc >= 35 && $imc <= 39.99) {
                                     $res = "Obeso tipo II";
                                 } else {
                                     if ($imc >= 40) {
                                         $res = "Obeso tipo III";
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
         $cadena = "<strong>IMC</strong>:" . nbs() . number_format($imc, 2) . nbs() . " - <strong>" . $res . "</strong>";
     }
     return $cadena;
 }
开发者ID:laiello,项目名称:tix-consultorios,代码行数:41,代码来源:lib_ope.php

示例6: foreach

		</div>
		<div class="col-md-9">
			<?php 
foreach ($single as $s) {
    ?>
				<div class="col-md-12 box-artikel">					
					<div class="col-md-12">
						<h3><?php 
    echo $s->judul;
    ?>
</h3>
						<small><span class="glyphicon glyphicon-user"></span> <?php 
    echo $s->username;
    ?>
 <?php 
    echo nbs(4);
    ?>
 <span class="glyphicon glyphicon-calendar"></span> <?php 
    echo $s->tanggal;
    ?>
</small>
						<br/>
						<br/>
						<a class="col-md-12">
							<img class="col-md-12" src="<?php 
    echo base_url() . 'images/' . $s->foto;
    ?>
" alt="<?php 
    echo $s->judul;
    ?>
">
开发者ID:aliandroblack,项目名称:blogger,代码行数:31,代码来源:v_single.php

示例7: nbs

        </div>
        
        <div style="padding: 10px;">
            Action :    <input  type="radio"  id="Action4_1_medi"  /> Prevent      <input  type="radio"  id="Action4_2_medi"   /> Correct
          </div>
        
        
        <div style="padding: 10px;">
            <?php 
echo nbs(10);
?>
            <label>
                   Patient                                
            </label>
            <?php 
echo nbs(70);
?>
            <label>
                   Doctor
            </label>
            
        </div>
        <div style="padding: 10px;">
            <label>
                <input  type="checkbox"  id="InterventionPT3_1_medi"  /> Adjust for appropriate therapy due to health system
            <input  type="checkbox"  id="InterventionDoctor3_1_medi"  /> Add new medication
            </label>
        </div>
        
        <div style="padding: 10px;">
            <label>
开发者ID:jutturong,项目名称:esn2_complete_18-1-59,代码行数:31,代码来源:main_medication.php

示例8: anchor

<h2><?php 
echo $headline;
?>
</h2>


	<?php 
if (isset($flash)) {
    echo $flash;
}
if ($new_category_allowed == true) {
    echo anchor('store_categories/create/x/' . $parent_category, 'Create New Category (on this level)');
}
if ($parent_category > 0) {
    echo nbs(3);
    echo anchor('store_categories/create/' . $parent_category, 'Update Parent Category');
}
?>


<br>
<?php 
echo Modules::run('store_categories/_display_categories_table', $parent_category);
?>

开发者ID:xemmex,项目名称:CodeIgniter-Shop,代码行数:24,代码来源:manage.php

示例9: array

/**
 * Vue permettant à un responsable de voir la liste des vacataires, de se connecter en leur nom ou de créer un vacataire
 * Cette vue nécessite les varaibles suivantes : (optionnel) $temporaryWorkers => tableau contenant des tableau associatifs décrivant un 'teacher'. Les clés sont :
 * 'initials' , 'firstnale' , 'lastname'
 * $fieldNames => tableau contenant les différents champs (texte) à remplir pour la création d'un vacataire
 */
$fieldNames = array('Initiales', 'Nom', 'Prénom');
echo div(array('class' => 'text-center center-block'));
if (isset($temporaryWorkers) && !empty($temporaryWorkers)) {
    $data = array();
    foreach ($temporaryWorkers as $t) {
        $data[$t['initials']] = $t['firstname'] . ' ' . $t['lastname'];
    }
    echo form_open('main/selectTemporaryWorkers', array('class' => 'form-group'));
    echo form_dropdown('id', $data, '', 'id="login" class="form-control"');
    echo br(1);
    echo form_submit(array('value' => 'Connexion', 'class' => 'btn btn-success'));
    echo br(2);
    echo form_close();
}
echo nbs(2);
echo '<table id="myTable" class="table table-bordered">';
echo "<tr><th></th><th>Créer un nouveau vacataire</th><th></th><th></th></tr>";
echo '<tr id="new">';
foreach ($fieldNames as $field) {
    echo '<td><input type="text" class="form-control" placeholder="' . $field . '"/></td>';
}
echo '<td><span style="cursor: pointer;" class="glyphicon glyphicon-floppy-disk" data-original-title="Enregistrer" data-placement="top" data-toogle="tooltip" onclick="saveNewRow()"></span></td>';
echo '</tr>';
echo '</table>';
echo div_close();
开发者ID:Nowadays,项目名称:assistade,代码行数:31,代码来源:selectTemporaryWorkers.php

示例10: foreach

    }
    if (count($dx_evo) > 0) {
        foreach ($dx_evo as $dat) {
            echo $dat['diagnostico'], nbs(), '|', nbs();
        }
    }
    ?>
</td>
</tr>
<tr>
<td width="50%" class='texto'><strong>Pendiente:</strong><?php 
    echo nbs() . $dato['pendiente'];
    ?>
</td>
<td width="50%" class='texto'><strong>Observaciones:</strong><?php 
    echo nbs() . $dato['observaciones'];
    ?>
</td>
</table>
<?php 
    //echo br();
}
echo br(3);
?>
<center>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="40%" style="text-align:center; font-size:12; font-weight:bold; border-top-width:1px; border-top-style:solid; border-top-color:#000">Firma médico entrega&nbsp;</td>
    <td width="20%">&nbsp;</td>
    <td width="40%" style="text-align:center; font-size:12; font-weight:bold; border-top-width:1px; border-top-style:solid; border-top-color:#000">Firma médico recibe&nbsp;</td>
  </tr>
开发者ID:laiello,项目名称:tix-consultorios,代码行数:31,代码来源:urg_entrega_turno_imprimir.php

示例11: foreach

</tr>
<?php 
    $i = 1;
    foreach ($atencion as $d) {
        ?>
<tr>
<td align="center"><strong><?php 
        echo $i;
        ?>
</strong></td>
<td><?php 
        echo $d['numero_documento'];
        ?>
</td>
<td><?php 
        echo $d['primer_apellido'], nbs(), $d['segundo_apellido'], nbs(), $d['primer_nombre'], nbs(), $d['segundo_nombre'];
        ?>
</td>
<td><?php 
        echo $d['fecha_ingreso'];
        ?>
</td>
<td><?php 
        echo $d['nombre_servicio'];
        ?>
</td>
<td class="opcion"><strong>
<?php 
        echo anchor('hosp/hosp_gestion_atencion/main/' . $d['id_atencion'], 'Gesti&oacute;n de la atenci&oacute;n');
        ?>
</strong>
开发者ID:laiello,项目名称:tix-consultorios,代码行数:31,代码来源:hosp_listadoGestion.php

示例12: foreach

	<h2>Items</h2>
		<div class="_100">
            <div class="search-box" style="float:left; width:257px;">
                <!--<div style="float: left; width: 70px; padding-top: 4px; font-weight: bold;">Search&nbsp;</div>--> 
                <div class="text-field-box">
                   <label for='searchlabel'><?php 
echo $this->lang->line('msg_Search');
?>
</label> <input name="searchlabel" type="text"  id="search" />
                </div>
                <!--<div class="text-field-cancel-button">
                    <a href="javascript:void(0);" id="search_clear" ><img src="images/search-box-cancel.png" border="0" id="search_clear" /></a>
                </div>-->
            </div>
        </div>
		<div class="_100">
		<ul id="sortableitems">
	<?php 
foreach ($item as $row) {
    $idItems = $row->idItems;
    echo '<li id="itemli-' . $idItems . '" class="ui-state-default"><div style="float:left;height:100%;padding:5px;">' . $row->label . nbs(4) . '</div><div style="display:none;float:left;" id="price-' . $idItems . '">' . $row->price . '</div>' . '<button id="itemadd-' . $idItems . '">' . $this->lang->line('msg_AddToMenu') . '</button></li>';
}
?>
			
		</ul>
		</div>
	</div>
<div id="dialogaddcat" title="Select a category"></div>	
</div>		

开发者ID:bashka139,项目名称:easymenu-restaurant-menu,代码行数:29,代码来源:list_items_add.php

示例13: foreach

<?php

$num_rows = $query->num_rows();
if ($num_rows > 0) {
    echo "<h3>Available Sizes</h3>";
    foreach ($query->result() as $row) {
        echo $row->item_size . " " . anchor('store_item_sizes/ditch/' . $row->id . '/' . $item_id, '<span style="color:red">Delete</span>') . nbs(4);
    }
    echo "<br><br>";
}
开发者ID:jephdavid,项目名称:ci_online_shop,代码行数:10,代码来源:display_sizes.php

示例14: nbs

echo nbs() . $evo['subjetivo'];
?>
</td></tr>
<tr><td class="texto" colspan="4"><strong>Objetivo:</strong>
<?php 
echo nbs() . $evo['objetivo'];
?>
</td></tr>
<tr><td class="texto" colspan="4"><strong>Análisis:</strong>
<?php 
echo nbs() . $evo['analisis'];
?>
</td></tr>
<tr><td class="texto" colspan="4"><strong>Conducta:</strong>
<?php 
echo nbs() . $evo['conducta'];
?>
</td></tr>
</table>

<h5>DIAGN&Oacute;STICOS</h5>
<table id="interna">
<?php 
$i = 1;
if (count($dxEvo) > 0) {
    foreach ($dxEvo as $d) {
        ?>
      <tr>
        <td class="negrita" style="width:130px">Diagn&oacute;stico <?php 
        echo $i;
        ?>
开发者ID:laiello,项目名称:tix-consultorios,代码行数:31,代码来源:evolucion.php

示例15: form_open

        $menu_name .= '<div class="quick-form" id="qf-' . $row->mid . '">';
        $menu_name .= form_open('sso/menus/act', 'class="form-horizontal"', array('mid' => $row->mid, 'quick' => TRUE));
        $menu_name .= '<div class="form-group">';
        $menu_name .= form_label('Name', 'mnme', array('class' => 'col-xs-4 col-md-2 control-label'));
        $menu_name .= '<div class="col-xs-4 col-md-10">';
        $menu_name .= form_input('mnme', str_replace('_', NULL, $row->mnme), 'class="input-sm form-control" id="mnme" placeholder="Menu name"');
        $menu_name .= '</div>';
        $menu_name .= '</div>';
        $menu_name .= '<div class="form-group">';
        $menu_name .= '<div class="col-sm-offset-2 col-sm-10">';
        $menu_name .= '<button type="submit" class="btn btn-sm btn-primary">Update menu</button>';
        $menu_name .= '<button type="button" class="btn btn-sm btn-default" id="cqe-' . $row->mid . '">Cancel</button>';
        $menu_name .= '</div>';
        $menu_name .= '</div>';
        $menu_name .= form_close();
        $menu_name .= '</div>';
        $menu_icon = '<span class="fa' . $row->mico . '"></span>';
        $menu_link = base_url($row->mlnk);
        $menu_update = mdate('%F %j, %Y on %H:%i', strtotime($row->ud)) . br() . '<span class="small text-muted">' . time_elapsed($row->ud) . nbs() . '<em>by</em>' . nbs() . $row->ufnme . '</span>';
        $menu_status = $row->mstat;
        $menu_id = $row->mid;
        $results['aaData'][$i] = array($menu_name, $menu_icon, $menu_link, $menu_update, $menu_status, $menu_id);
        ++$i;
    }
} else {
    //jika data kosong, sistem iddle
    for ($i = 0; $i < 6; ++$i) {
        $results['aaData'][0][$i] = '';
    }
}
print $callback . '(' . json_encode($results) . ')';
开发者ID:soniibrol,项目名称:package,代码行数:31,代码来源:list_json.php


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