• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_name函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: get_title

function get_title($xml, $type, $id)
{
    $tmp = '';
    if ($type != 'changset') {
        $tmp = get_name($xml->{$type});
    }
    if ($tmp == '') {
        return $id;
    } else {
        return $tmp . "(" . $id . ")";
    }
}
开发者ID:4x4falcon,项目名称:browse,代码行数:12,代码来源:functions.php


示例2: get_re

function get_re($ids)
{
    $result = get_table_where_order("chat", "*", "`RE_TO` = " . $ids . "", "`DATE` ASC");
    if ($result->num_rows != 0) {
        while ($row = $result->fetch_assoc()) {
            $re[] = array('id' => $row["ID"], 'name' => get_name($row["OWNER_ID"]), 'text' => $row["TEXT"], 'date' => $row["DATE"], 'RE' => get_re($row["ID"]));
        }
        return $re;
    } else {
        return "";
    }
}
开发者ID:H4kor,项目名称:cliq-event,代码行数:12,代码来源:chat.php


示例3: check_ewus_ajax

function check_ewus_ajax($id_wiz)
{
    $id_pac = get_name('wizyty', $id_wiz, 'id_pac', 'id');
    echo '<script>   
    $(document).ready(function() {
    $.ajax({
      url: "check_ewus_ajax.php?pac_id=' . $id_pac . '",
      success: function(msg){  
        $("#check_ewus_' . $id_wiz . '").attr("src", msg);
      }
    });
});
   </script>';
}
开发者ID:wycus,项目名称:darmedic,代码行数:14,代码来源:grafik.php


示例4: add_student

function add_student($db, $argv)
{
    if (sizeof($argv) == 3) {
        $login = $argv[2];
        if (preg_match("/^[a-zA-Z]{2,6}_[a-zA-Z0-9]\$/", $login) == 1) {
            $collection = $db->createCollection("students");
            $document = array("login" => $login, "name" => get_name(), "age" => intval(get_age()), "email" => get_email(), "phone" => get_number(), "rented_movies" => array());
            $collection->insert($document);
            echo "[32mUser registered ![0m\n";
        } else {
            echo "[31mError: Login invalide.\n[0m";
        }
    } else {
        echo "[31mInvalid arg number!\nUsage: ./etna_movies.php login.[0m\n";
    }
}
开发者ID:amira-s,项目名称:etna-projects,代码行数:16,代码来源:students.php


示例5: get_host

function get_host()
{
    $host = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '');
    //$host = $_SERVER['HTTP_HOST'];
    if (!empty($host)) {
        return $host;
    }
    $scheme = get_schema();
    $name = get_name();
    $port = get_port();
    if ($scheme == "HTTP" && $port == 80 || $scheme == "HTTPS" && $port == 443) {
        return $name;
    } else {
        return $name . ':' . $port;
    }
}
开发者ID:453111208,项目名称:bbc,代码行数:16,代码来源:check.php


示例6: pop_child

function pop_child($child, $parent, $coparent = 0)
{
    global $_Child, $_Source, $_with, $_toolhelp_has_descendants;
    $name = get_name($child);
    $sentence = bold($_Child . ':') . conc(linked_name($child));
    if ($coparent) {
        // illegitimate child, print coparent
        $sentence .= conc($_with) . conc(linked_name($coparent));
    }
    if (has_descendants($child)) {
        $sentence .= conc(span_type('+', "alert", sprintf($_toolhelp_has_descendants, $child)));
    }
    $sentence = para($sentence, "name");
    /*
    // This section has become obsolete with the addition of inline source
    // citations in print_bd() above. Left here because you may prefer to
    // document parent/child relations rather than BD events of spouses and
    // children, or maybe both.
    // print relation source(s)
    $handle = pg_query("
        SELECT
            source_text
        FROM
            relation_notes
        WHERE
            note_id = (
            SELECT
                relation_id
            FROM
                relations
            WHERE
                child_fk = $child
            AND
                parent_fk = $parent
        )
    ");
    while ($row = pg_fetch_assoc($handle)) {
        $sentence .= para(paren($_Source . ':'
            . conc(ltrim($row['source_text']))), "childsource");
    }
    */
    echo $sentence;
    print_bd($child, 1);
    print_marriage($child);
    print_bd($child, 3);
    pg_query("DELETE FROM tmp_children WHERE child = {$child}");
}
开发者ID:AlexSnet,项目名称:yggdrasil-genealogy,代码行数:47,代码来源:family.php


示例7: lang

                    <div class="row form-row">
                      <div class="col-md-3">
                        <label class="form-label text-right"><?php 
echo lang('name');
?>
</label>
                      </div>
                      <div class="col-md-9">
                        <?php 
if (is_admin()) {
    $style_up = 'class="select2" style="width:100%" id="emp"';
    echo form_dropdown('emp', $users, '', $style_up);
} else {
    ?>
                        <input type="text" class="form-control" value="<?php 
    echo get_name($sess_id);
    ?>
" readonly>
                        <input type="hidden" name="emp" id="emp" value="<?php 
    echo $sess_id;
    ?>
">
                        <?php 
}
?>
                      </div>
                    </div>
                    <div class="row form-row">
                      <div class="col-md-3">
                        <label class="form-label text-right">NIK</label>
                      </div>
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:31,代码来源:input.php


示例8: foreach

foreach ($email as $row) {
    ?>
	              <div class="grid-body no-border" style="min-height: 850px;">
	                <div class="" >
	                  <h3 id="emailheading"><?php 
    echo $row->subject;
    ?>
</h3>
	                  <br>
	                  <div class="control">                 
	                    <div class="pull-left">
	                    <?php 
    echo get_name($row->sender_id);
    ?>
	                    <label class="inline"><span class="muted">&nbsp;to</span> <span class="bold small-text"><?php 
    echo get_name($row->receiver_id);
    ?>
</span></label>
	                    </div>
	                    <div class="pull-right">
	                      <span class="muted small-text"><?php 
    echo $row->sent_on;
    ?>
</span>
	                    </div>
	                    <div class="clearfix"></div>
	                  </div>  
	                  <br>
	                  <div class="email-body">
	                    <p><?php 
    $button = $row->is_request_activation == 1 ? "<a href=" . site_url('email/activate/' . $row->id) . "><button type='button' class='btn btn-success'>Activate</button></a>" : '';
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:31,代码来源:detail.php


示例9: VALUES

        if (count($check) > 0) {
            $message = "Bạn đã add phim này rồi";
        } else {
            $wpdb->query("INSERT INTO wp_boxfilm VALUES (0,{$filmid},{$user_id})");
            $message = "Add vào hộp phim thành công";
        }
    } else {
        $message = "Bạn chưa đăng nhập";
    }
    $member = array('message' => $message);
    echo json_encode($member);
    die;
} elseif ($_GET['episode_id']) {
    $idtap = $_GET['episode_id'];
    $idphim = $_GET['film_id'];
    $tap = get_name($idtap);
    if ($idtap != 0) {
        $member = array('html' => getlinkphim($idphim, $idtap), 'server_name' => 'vip', 'episode_name' => $tap);
        echo json_encode($member);
        die;
    }
} elseif ($_POST['userid']) {
    $userid = get_current_user_id();
    $q = $wpdb->get_results("SELECT box_id,box_phim FROM wp_boxfilm WHERE box_user = {$userid} ");
    if ($q) {
        foreach ($q as $box) {
            $html .= '<li><strike data-film-id="' . $box->box_phim . '" onclick="Phim3s.Member.removeBookmark(' . $box->box_phim . '); return false;" >Xóa</strike><a href="' . get_permalink($box->box_phim) . '" title="' . get_the_title($box->box_phim) . '">' . get_the_title($box->box_phim) . '</a></li>';
        }
    }
    $member = array('json' => '<ul class="bookmarklist">' . $html . '</ul>');
    echo json_encode($member);
开发者ID:congtrieu112,项目名称:anime,代码行数:31,代码来源:ajax.php


示例10: elseif

                                </div>
                                <?php 
    } elseif ($is_app == 1) {
        $approved = assets_url('img/approved_stamp.png');
        $rejected = assets_url('img/rejected_stamp.png');
        ?>
                        <div class="row wf-cuti">
                        <div class="col-md-3 pull-right text-center">
                        <div class="col-md-12 text-center"><div class="col-md-12 text-center"><span class="semi-bold">Status Perubahan,</span><br/><br/><br/></div>
                          <p class="wf-approve-sp">
                           <?php 
        echo $app_status_id == 1 ? "<img class=approval_img_md src={$approved}>" : ($app_status_id == 2 ? "<img class=approval_img_md src={$rejected}>" : '<span class="small"></span><br/>');
        ?>
                              <span class="small"></span><br/>
                              <span class="semi-bold"><?php 
        echo get_name($user_app);
        ?>
</span><br/>
                              <span class="small"><?php 
        echo dateIndo($date_app);
        ?>
</span><br/>
                              <span class="semi-bold"></span><br/>
                              <span class="semi-bold">(Administrator)</span>
                              </p>
                              </div>
                              </div>
      <?php 
    }
    ?>
                            <?php 
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:31,代码来源:edit_user_approval.php


示例11: get_name

                          <p class="wf-submit">
                            <span class="semi-bold"><?php 
            echo get_name($report_creator);
            ?>
</span><br/>
                            <span class="small"><?php 
            echo dateIndo($created_on);
            ?>
</span><br/>
                          </p>
                           <?php 
        } else {
            ?>
                          <p class="wf-submit">
                            <span class="semi-bold"><?php 
            echo get_name($report_creator);
            ?>
</span><br/>
                            <span class="small"><?php 
            echo dateIndo($created_on);
            ?>
</span><br/>
                          </p>
                          <?php 
        }
        ?>
                  </div>
                </div>

                <?php 
    }
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:31,代码来源:spd_dalam_report_mail.php


示例12: ACL

 * Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2012, 7 Media Web Solutions, LLC (http://www.7mediaws.org/)
 * @link http://tinyphp.us/ tinyPHP(tm) Project
 * @since tinyPHP(tm) v 1.0.0
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
use tinyPHP\Classes\Libraries\ACL;
$eRole = new ACL();
?>

<h1><?php 
echo get_name(_h($this->role[0]['userID']));
?>
 <?php 
echo _t('Role: Edit');
?>
</h1>

<form class="form-horizontal margin-none" action="<?php 
echo BASE_URL;
?>
user/runRolePerm/" id="validateSubmitForm" method="post" autocomplete="off">
	<!-- Table -->
	<table class="dynamicTable tableTools table table-striped table-bordered table-condensed table-white">
	
		<!-- Table heading -->
		<thead>
开发者ID:jmcismail,项目名称:tinyPHP,代码行数:31,代码来源:role.php


示例13: elseif

                            <?php 
if ($td->is_app_hrd == 0 && $this->approval->approver('dinas') == $sess_nik) {
    ?>
                              <button id="btn_app_hrd" class="btn btn-success btn-cons" data-loading-text="Loading..."><i class="icon-ok"></i>Submit</button>
                              <span class="small"></span>
                              <span class="semi-bold"></span><br/>
                              <span class="small"></span><br/>
                              <span class="semi-bold"></span><br/>
                              <span class="semi-bold">(HRD)</span>
                            <?php 
} elseif ($td->is_app_hrd == 1) {
    echo "<img class=approval_img_md src={$approved}>";
    ?>
                              <span class="small"></span><br/>
                              <span class="semi-bold"><?php 
    echo get_name($td->user_app_hrd);
    ?>
</span><br/>
                              <span class="small"><?php 
    echo dateIndo($td->date_app_hrd);
    ?>
</span><br/>
                              <span class="semi-bold"></span>
                              <span class="semi-bold">(HRD)</span>
                            <?php 
} else {
    ?>
                              <span class="small"></span><br/>
                              <span class="small"></span><br/>
                              <span class="semi-bold"></span><br/>
                              <span class="small"></span><br/>
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:31,代码来源:submit.php


示例14: _t

        echo _t('Section Info');
        ?>
</h3>
								</div>
								<!-- // Modal heading END -->
								
								<!-- Modal body -->
								<div class="modal-body">
									<table>
                                		<tr>
                                			<td><strong><?php 
        echo _t('Instructor:');
        ?>
</strong></td>
                                			<td><?php 
        echo get_name(_h($v['facID']));
        ?>
</td>
                                		</tr>
                                		<tr>
                                			<td><strong><?php 
        echo _t('Description:');
        ?>
</strong></td>
                                            <td><?php 
        echo _escape($v['courseDesc']);
        ?>
</td>
                                		</tr>
                                		<tr>
                                			<td><strong><?php 
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:index.php


示例15: _t

</button>
                                    </div>
                            	</div>
                        	</div>
                        </div>
                        <!-- // Group END -->
                        
                        <!-- Group -->
                        <div class="form-group">
                            <label class="col-md-3 control-label"><?php 
echo _t('Approved By');
?>
</label>
                            <div class="col-md-6">
                                <input type="text" readonly class="form-control" value="<?php 
echo _h(get_name($sacp[0]['approvedBy']));
?>
" />
                            </div>
                        </div>
                        <!-- // Group END -->
                        
                        <!-- Group -->
                        <div class="form-group">
                            <label class="col-md-3 control-label"><?php 
echo _t('Last Update');
?>
</label>
                            <div class="col-md-6">
                                <input type="text" readonly class="form-control" value="<?php 
echo date('D, M d, o @ h:i A', strtotime(_h($sacp[0]['LastUpdate'])));
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:31,代码来源:sacp.php


示例16: etsis_nodeq_change_address

/**
 * Change of Address Email
 * 
 * Function used to send change of address to
 * appropriate staff member.
 * 
 * @since 6.2.11
 */
function etsis_nodeq_change_address()
{
    $app = \Liten\Liten::getInstance();
    $email = _etsis_email();
    $host = $app->req->server['HTTP_HOST'];
    $site = _t('myeduTrac :: ') . _h(get_option('institution_name'));
    // Creates node's schema if does not exist.
    Node::dispense('change_address');
    try {
        $sql = Node::table('change_address')->where('sent', '=', 0)->findAll();
        if ($sql->count() == 0) {
            Node::table('change_address')->delete();
        }
        $numItems = $sql->count();
        $i = 0;
        if ($sql->count() > 0) {
            foreach ($sql as $r) {
                $message = _escape(get_option('coa_form_text'));
                $message = str_replace('#uname#', _h($r->uname), $message);
                $message = str_replace('#fname#', _h($r->fname), $message);
                $message = str_replace('#lname#', _h($r->lname), $message);
                $message = str_replace('#name#', get_name(_h($r->personid)), $message);
                $message = str_replace('#id#', _h($r->personid), $message);
                $message = str_replace('#address1#', _h($r->address1), $message);
                $message = str_replace('#address2#', _h($r->address2), $message);
                $message = str_replace('#city#', _h($r->city), $message);
                $message = str_replace('#state#', _h($r->state), $message);
                $message = str_replace('#zip#', _h($r->zip), $message);
                $message = str_replace('#country#', _h($r->country), $message);
                $message = str_replace('#phone#', _h($r->phone), $message);
                $message = str_replace('#email#', _h($r->email), $message);
                $message = str_replace('#adminemail#', _h(get_option('system_email')), $message);
                $message = str_replace('#url#', get_base_url(), $message);
                $message = str_replace('#helpdesk#', _h(get_option('help_desk')), $message);
                $message = str_replace('#currentterm#', _h(get_option('current_term_code')), $message);
                $message = str_replace('#instname#', _h(get_option('institution_name')), $message);
                $message = str_replace('#mailaddr#', _h(get_option('mailing_address')), $message);
                $headers = "From: {$site} <auto-reply@{$host}>\r\n";
                $headers .= "X-Mailer: PHP/" . phpversion();
                $headers .= "MIME-Version: 1.0" . "\r\n";
                $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
                $email->etsis_mail(_h(get_option('contact_email')), _t('Change of Address Request'), $message, $headers);
                $upd = Node::table('change_address')->find(_h($r->id));
                $upd->sent = 1;
                $upd->save();
                if (++$i === $numItems) {
                    //If we reach the last item, send user a desktop notification.
                    etsis_push_notify('Change of Address', 'Request has been submitted.');
                }
            }
        }
    } catch (\Exception $e) {
        return new \app\src\Core\Exception\Exception($e->getMessage(), 'NodeQ');
    }
}
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:63,代码来源:nodeq-function.php


示例17: form_resignment_pdf

 function form_resignment_pdf($id)
 {
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     }
     $sess_id = $this->data['sess_id'] = $this->session->userdata('user_id');
     $user_id = getValue('user_id', 'users_resignment', array('id' => 'where/' . $id));
     $this->data['user_nik'] = get_nik($user_id);
     $form_resignment = $this->data['form_resignment'] = $this->form_resignment_model->form_resignment($id)->result();
     $this->data['_num_rows'] = $this->form_resignment_model->form_resignment($id)->num_rows();
     $this->data['approval_status'] = GetAll('approval_status', array('is_deleted' => 'where/0'));
     $this->data['id'] = $id;
     $title = $this->data['title'] = 'Form Karyawan Keluar-' . get_name($user_id);
     $this->load->library('mpdf60/mpdf');
     $html = $this->load->view('resignment_pdf', $this->data, true);
     $mpdf = new mPDF();
     $mpdf = new mPDF('A4');
     $mpdf->WriteHTML($html);
     $mpdf->Output($id . '-' . $title . '.pdf', 'I');
 }
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:20,代码来源:form_resignment.php


示例18: get_base_url

?>
</a></li>
    <li class="divider"></li>
    <li><a href="<?php 
echo get_base_url();
?>
stu/<?php 
echo bm();
?>
" class="glyphicons search"><i></i> <?php 
echo _t('Search Student');
?>
</a></li>
    <li class="divider"></li>
    <li><?php 
echo get_name(_h($stu->stuID));
?>
 <?php 
echo _t('(SPRO)');
?>
</li>
</ul>

<div class="innerLR">
    
    <?php 
get_stu_header(_h($stu->stuID));
?>
    
    <div class="separator line bottom"></div>
    
开发者ID:parkerj,项目名称:eduTrac-SIS,代码行数:30,代码来源:view.php


示例19: get_nik

                        </tr>
                      </thead>
                      <tbody>
                        <?php 
    if (!empty($detail_hrd)) {
        $total = $detail_hrd[0]['rupiah'];
        for ($i = 0; $i < sizeof($detail_hrd); $i++) {
            $is_approve = $detail_hrd[$i]['is_approve'] == 1 ? 'Ya' : 'Tidak';
            ?>
                          <tr>
                            <td><?php 
            echo get_nik($detail_hrd[$i]['karyawan_id']);
            ?>
</td>
                            <td><?php 
            echo get_name($detail_hrd[$i]['karyawan_id']);
            ?>
</td>
                            <td><?php 
            echo $detail_hrd[$i]['pasien'];
            ?>
</td>
                            <td><?php 
            echo $detail_hrd[$i]['hubungan'];
            ?>
</td>
                            <td><?php 
            echo $detail_hrd[$i]['jenis'];
            ?>
</td>
                            <td><?php 
开发者ID:ocpyosep78,项目名称:hris_client,代码行数:31,代码来源:medical_mail.php


示例20: get_name

                <div class="tab-content">
                  
                  <div class="tab-pane active" id="view" active>
                    <div class="row">
                      <div class="col-md-6">

                        <!-- Profile Image -->
                        <div class="box box-primary">
                          <div class="box-body box-profile">
                            <img class="profile-user-img img-responsive img-circle" src="<?php 
echo $dp_name;
?>
" alt="User profile picture" style="height: 110px;
    width: 110px;">
                            <h3 class="profile-username text-center"><?php 
echo get_name($user_id);
?>
</h3>
                            <p class="text-muted text-center"><?php 
$dept = getuserfield_academics('dept_id', $user_id);
echo getdept('dept_name', $dept);
?>
</p>
                            <!--
                            <ul class="list-group list-group-unbordered">
                              <li class="list-group-item">
                                <b>Followers</b> <a class="pull-right">1,322</a>
                              </li>
                              <li class="list-group-item">
                                <b>Following</b> <a class="pull-right">543</a>
                              </li>
开发者ID:biswa-13,项目名称:UtkalPlacementPortal,代码行数:31,代码来源:profile.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_name_value函数代码示例发布时间:2022-05-15
下一篇:
PHP get_my_users函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap