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

PHP base函数代码示例

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

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



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

示例1: proveedores

function proveedores()
{
    $producto = $_POST["producto"];
    $empresa = $_POST["empresa"];
    $ID = $_POST["ID"];
    base($producto, $empresa, $ID);
}
开发者ID:yagss,项目名称:panaderia,代码行数:7,代码来源:proveedores.php


示例2: inventario

function inventario()
{
    $serial = $_POST["Txtserial"];
    $nombre = $_POST["Txtnombre"];
    $valor = $_POST["Txtvalor"];
    $cantidad = $_POST["Txtcantidad"];
    $proveedor = $_POST["Txtproveedor"];
    base($serial, $nombre, $valor, $cantidad, $proveedor);
}
开发者ID:yagss,项目名称:panaderia,代码行数:9,代码来源:inventarios.php


示例3: cliente

function cliente()
{
    $documento = $_POST["txtDocumento"];
    $nombre = $_POST["txtNombre"];
    $apellido = $_POST["txtApellido"];
    $correo = $_POST["txtCorreo"];
    $telefono = $_POST["txtTelefono"];
    base($documento, $nombre, $apellido, $correo, $telefono);
}
开发者ID:yagss,项目名称:panaderia,代码行数:9,代码来源:cliente.php


示例4: set

 /**
  * Sets the component.
  *
  * @param  \Interop\Container\ContainerInterface $container
  * @return void
  */
 public function set(ContainerInterface &$container)
 {
     // Loads the environment variables from an .env file.
     (new Dotenv(base()))->load();
     // Sets the default timezone
     date_default_timezone_set(env('timezone', 'Asia/Manila'));
     // Start the session
     session_start();
 }
开发者ID:rougin,项目名称:slytherin-skeleton,代码行数:15,代码来源:BootstrapComponent.php


示例5: recolectar

function recolectar()
{
    $documento = $_POST['documento'];
    $fecha = $_POST['fecha'];
    $serial = $_POST['serial'];
    $producto = $_POST['nombre'];
    $cantidad = $_POST['cantidad'];
    $precio = $_POST['precio'];
    base($fecha, $documento, $serial, $cantidad, $precio, $producto);
}
开发者ID:yagss,项目名称:panaderia,代码行数:10,代码来源:cotizacion.php


示例6: deconnexion

function deconnexion()
{
    global $page;
    $page['gabarit'] = "base";
    $page['vue'] = "connexion.vue.php";
    if (isset($_SESSION['id_user'])) {
        session_unset();
        session_destroy();
    }
    base();
}
开发者ID:arnodinho,项目名称:symfony2,代码行数:11,代码来源:base.php


示例7: inventario

function inventario()
{
    $id = $_POST["txtId"];
    $docu = $_POST["txtDocu"];
    $serial = $_POST["txtSerial"];
    $cant = $_POST["txtCant"];
    $precio = $_POST["txtPre"];
    $nombre = $_POST["txtNom"];
    $fecha = $_POST["txtFecha"];
    base($id, $docu, $serial, $cant, $precio, $nombre, $fecha);
}
开发者ID:yagss,项目名称:panaderia,代码行数:11,代码来源:factura.php


示例8: config

 /**
  * Gets the configuration from the specified file.
  *
  * @param  string $key
  * @param  string $defaultValue
  * @return mixed
  */
 function config($key = null, $defaultValue = null)
 {
     $arrayKeys = explode('.', $key);
     $filePath = base('app/config/' . $arrayKeys[0] . '.php');
     if (!file_exists($filePath)) {
         throw new InvalidArgumentException('File not found.');
     }
     $value = (require $filePath);
     for ($i = 1; $i < count($arrayKeys); $i++) {
         $value =& $value[$arrayKeys[$i]];
     }
     return empty($value) ? $defaultValue : $value;
 }
开发者ID:rougin,项目名称:weasley,代码行数:20,代码来源:ConfigHelper.php


示例9: set

 /**
  * Sets the component.
  *
  * @param  \Interop\Container\ContainerInterface $container
  * @return void
  */
 public function set(ContainerInterface &$container)
 {
     $entityManager = $container->get('Doctrine\\ORM\\EntityManager');
     $path = base('src/Repositories/');
     $files = glob($path . '*Repository.php');
     foreach ($files as $item) {
         $entity = str_replace([$path, 'Repository.php'], ['', ''], $item);
         $model = 'App\\Models\\' . $entity;
         $name = 'App\\Repositories\\' . $entity . 'Repository';
         $metadata = $entityManager->getClassMetadata($model);
         if ($container instanceof Container) {
             $container->add($name, new $name($entityManager, $metadata));
         }
     }
 }
开发者ID:rougin,项目名称:slytherin-skeleton,代码行数:21,代码来源:RepositoryComponent.php


示例10: view

 /**
  * Renders a view from a template.
  *
  * @param  string $template
  * @param  array  $data
  * @return string
  */
 function view($template, $data = [])
 {
     $loader = new Twig_Loader_Filesystem(base('app/views'));
     $twig = new Twig_Environment($loader);
     // Loads the filters
     $twig->addFilter(new Twig_SimpleFilter('url', 'url'));
     $twig->addFilter(new Twig_SimpleFilter('json', 'json'));
     // Loads the globals
     $twig->addGlobal('request', request());
     $twig->addGlobal('session', session());
     // Loads the functions
     $twig->addFunction(new Twig_SimpleFunction('carbon', 'carbon'));
     $twig->addFunction(new Twig_SimpleFunction('session', 'session'));
     $renderer = new Rougin\Slytherin\Template\Twig\Renderer($twig);
     session(['old' => null, 'validation' => null]);
     return $renderer->render($template, $data, 'twig');
 }
开发者ID:rougin,项目名称:slytherin-skeleton,代码行数:24,代码来源:ViewHelper.php


示例11: load_shots

function load_shots($dbc, $image_path, $path, $query)
{
    $images = get_shots($dbc, $query);
    foreach ($images as $image) {
        ?>
        <div class="mt-shot-card">
            <div class="mt-shot-image">
                <a href="?id=<?php 
        echo $image['shotID'];
        ?>
" style="margin:0;">
                <img src="<?php 
        echo base($path) . '../../' . '/' . $image_path . $image['shotFileName'] . '.' . $image['shotFileType'];
        ?>
">
                </a>
            </div>
        </div>

    <?php 
    }
}
开发者ID:jobizzness,项目名称:Jobekunda,代码行数:22,代码来源:template.php


示例12: mysql_connect

  <div align="center">Titre :
    <input name="titre" id="titre" type="text" size="35"/>
    <br/><br/>
	<input name="maj" type="text" value="0" id="maj" style="display:none"/>
	<?php 
if (isset($_GET['info'])) {
    ?>
				<script type="text/javascript">
					document.getElementById('maj').value="<?php 
    echo $_GET['info'];
    ?>
";
				</script>
			<?php 
    mysql_connect(hote(), user(), password());
    mysql_select_db(base());
    $reponse = mysql_query('SELECT * FROM tuto WHERE num="' . $_GET['info'] . '"') or die(mysql_error());
    if ($donnees = mysql_fetch_array($reponse)) {
        ?>
				<script type="text/javascript">
  						document.getElementById('titre').value="<?php 
        echo addslashes($donnees['titre']);
        ?>
";
				</script>
				<?php 
    }
}
?>
<textarea
	name="txt"
开发者ID:scicasoft,项目名称:CRUD-generator,代码行数:31,代码来源:test.php


示例13: base

<?php

// имя модуля
$module_name = 'site';
require_once base('modules/' . $module_name . '/tree_utils.class');
require_once base('modules/' . $module_name . '/main.class');
require_once base('modules/' . $module_name . '/page.class');
$module_loader =& Registry::get('TModuleLoader');
$module_loader->registerClassFile('TMenu', 'modules/' . $module_name . '/menu');
$module_loader->registerClassFile('TUserAuth', 'modules/' . $module_name . '/user_auth.class');
开发者ID:romlg,项目名称:cms36,代码行数:10,代码来源:init.php


示例14: describe

<?php

describe('User interactions', function () {
    beforeEach(function () {
        clear_app();
    });
    describe('visiting the homepage as a visitor', function () {
        it('shows hello world', function () {
            browser()->visit(base() . '/');
            expect(page())->toContainText('Hello world!');
        });
    });
    describe('visiting the homepage as a logged in user', function () {
        beforeEach(function () {
            update_user('test', 'test', 'ROLE_USER');
        });
        it('is possible to login as the user', function () {
            browser()->visit(base() . '/login');
            page()->fillField('Username', 'test');
            page()->fillField('Password', 'test');
            page()->pressButton('Login');
            expect(page())->toContainText('Hello test!');
        });
    });
});
开发者ID:Safranil,项目名称:symfony-okoa,代码行数:25,代码来源:UserSpec.php


示例15: config

<?php

/**
 * Configurations for Doctrine.
 *
 * @var array
 */
return ['developer_mode' => config('app.environment') == 'development', 'model_paths' => [base('src/Models')], 'proxy_path' => base('src/Proxies')];
开发者ID:rougin,项目名称:slytherin-skeleton,代码行数:8,代码来源:doctrine.php


示例16: base

<body class="mt-layout">

    <?php 
include CONFIG . 'page.php';
?>
      <!-- Transfer later -->
    <div class="mt-layout-black__cover"></div>


    <!--Main Plugins-->
    <script src="<?php 
echo base($path);
?>
/assets/js/plugins.js"></script>
    <!-- Custom Scripts -->
    <script src="<?php 
echo base($path);
?>
/assets/js/script.js"></script>

    <!-- Google Analytics -->
     <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
      ga('create', 'UA-56825866-2', 'auto');
      ga('send', 'pageview');
     </script>
</body>
</html>
开发者ID:jobizzness,项目名称:Jobekunda,代码行数:31,代码来源:index.php


示例17: config

<?php

/**
 * Returns a listing of configurations for Doctrine.
 *
 * @var array
 */
return ['developer_mode' => config('app.environment') == 'development', 'model_paths' => [base('{{ folders.models }}')], 'proxy_path' => base('{{ folders.proxies }}')];
开发者ID:rougin,项目名称:weasley,代码行数:8,代码来源:doctrine.php


示例18: defined

<?php

defined('__SIEVAL__') or die('Acces interdit');
global $session;
switch ($tache) {
    case 'base':
        base();
        break;
    case 'creer_session':
        creer_session();
        break;
    case 'modifier_session':
        modifier_session();
        break;
    case 'supprimer_session':
        supprimer_session();
        break;
    case 'gerer_candidature':
        gerer_candidature();
        break;
    case 'modifier_candidature':
        modifier_candidature();
        break;
    case 'modifier_motif':
        modifier_motif();
        break;
    case 'lister_session':
        lister_session();
        break;
    case 'importer':
        importer();
开发者ID:arnodinho,项目名称:symfony2,代码行数:31,代码来源:session.php


示例19: partager_item

function partager_item()
{
    global $page;
    global $item;
    global $message;
    $page['gabarit'] = "administration";
    if (isset($_SESSION['role_user']) && droit_acces($item['reponse_item'], $_SESSION['role_user'])) {
        $page['vue'] = "items/partage_item.vue.php";
        $page['colonne'] = "items/sidebar_item.vue.php";
        $page['etat'] = liste_etat();
        $page['etat'] = liste_etat();
        $page['categorie'] = liste_categorie();
        $page['items'] = liste_item();
        $page['lieu'] = liste_lieux_auteur();
        $page['sphere'] = liste_sphere();
        $page['facteur'] = liste_facteur();
        $page['projet'] = liste_projet();
        $page['organisme_auteur'] = liste_lieux_auteur();
        if (isset($_POST['rech_item'])) {
            $page['items_recherche'] = json_encode(rechercher_item_partage_json(1, 0, $_POST['libelle_item'], $_POST['projet_item'], $_POST['difficulte_item'], $_POST['id_etat'], $_POST['duree_item'], $_POST['id_facteur'], $_POST['id_sphere'], $_POST['crea1'], $_POST['crea2'], $_POST['modif1'], $_POST['modif2'], $_POST['id_lieu']));
        } elseif (isset($_POST['partager'])) {
            if (isset($_POST['items'])) {
                if ($_POST['organisme']) {
                    foreach ($_POST['items'] as $it) {
                        ajout_droit($it, $_POST['organisme']);
                    }
                    base();
                } else {
                    $page['message'] = $message['champs_obligatoire_2'];
                }
            } else {
                $page['message'] = $message['item_obligatoire'];
            }
        }
    } else {
        $page['vue'] = "erreur_droit.vue.php";
    }
}
开发者ID:arnodinho,项目名称:symfony2,代码行数:38,代码来源:item.php


示例20: base

?>
"><?php 
echo $URL;
?>
"><span>Home</span></a></li>
        	<li id="nav-line<?php 
base("linecard");
?>
"><?php 
echo $URL;
?>
linecard/"><span>Line Card</span></a></li>
        	<li id="nav-contact<?php 
base("contact");
?>
"><?php 
echo $URL;
?>
contact/"><span>Contact</span></a></li>
        	<li id="nav-tech<?php 
base("techinfo");
?>
"><?php 
echo $URL;
?>
techinfo/"><span>Tech Info</span></a></li>
        </ul>
        <!-- <?php 
echo "public_base= " . $public_base . "<br />selected = " . $selected;
?>
 -->
开发者ID:RCDawson,项目名称:patrick,代码行数:31,代码来源:header.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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