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

PHP vecho函数代码示例

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

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



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

示例1: test_binary_exact

function test_binary_exact()
{
    vecho("Binary, positive powers of 2\n");
    $n = 1;
    for ($i = 0; $i < 30; $i++) {
        tb1($n);
        $n *= 2;
    }
    vecho("\nBinary, negative powers of 2\n");
    $n = 1;
    for ($i = 0; $i < 30; $i++) {
        tb1($n);
        $n /= 2;
    }
    vecho("\n");
}
开发者ID:myfarms,项目名称:PHPlot,代码行数:16,代码来源:u.calcstep.php


示例2: echof

 public static function echof($varName, $format = null, $default = '')
 {
     vecho($varName, $format, $default);
 }
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:4,代码来源:View.php


示例3: url

              </data></td>
            </tr></table>
          </div>
        <?php 
    }
    ?>
        <div class="mblockwrapper">
          <table class="mblock">
            <td class="pp"><profpic style="background-image: url('asdf');"></profpic></td>
            <td><data>
              <form method="post" action="?id=<?php 
    vecho('currentid');
    ?>
">
                <textarea id="msg" name="msg" required maxlength="2000" placeholder="Write Your Message:"><?php 
    vecho('msg');
    ?>
</textarea>
                <?php 
    vnotice();
    ?>
                <right><input type="submit" name="reply" value="Send" /></right>
              </form>
            </data></td>
          </table>
        </div>
      <?php 
}
?>
    </td>
  </tr></table>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:messages.php


示例4: foreach

foreach ($cols[1] as $blurb) {
    echo $blurb;
}
?>
          </td>
          <td class="col">
            <?php 
foreach ($cols[2] as $blurb) {
    echo $blurb;
}
?>
          </td>
        </tr>
      </table>
    </div>

    <a href="search.php?bycompany=<?php 
vecho('name');
?>
"><input type="button" value="View Job Listings" /></a>

    <?php 
if (vget('isme')) {
    ?>
      <br /><br />
      <a href="editcompany.php"><input type="button" value="Edit Company Profile" /></a>
    <?php 
}
?>
  </div>
</panel>
开发者ID:edwardshe,项目名称:sublite-1,代码行数:31,代码来源:viewcompany.php


示例5: Image

  <form method="post" enctype="multipart/form-data">
    Image (< 10MB): <input type="file" name="upload" />
    <input type="submit" value="Upload" /><br />
    <small>(.JPG/.JPEG, .PNG, .GIF only)</small>
  </form>
</div>
<script>
  function up(url) {
    console.log(url);
    <?php 
if (isset($_GET['name'])) {
    $name = $_GET['name'];
    echo "window.parent.addImg{$name}(url, '{$name}');";
} else {
    echo 'window.parent.addImg(url);';
}
?>
  }
  <?php 
vecho('reply');
?>

  function resize() {
    window.parent.$('iframe.S3')
      .width($('.container').width())
      .height($('.container').height());
  }
  $('.container').resize(resize);
  resize();
  setTimeout(function() { resize(); }, 1000);
</script>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:S3.php


示例6: vnotice

<panel class="form">
  <div class="content">
    <headline>Report a Bug/Feedback Form</headline>
    <form method="post">
      <?php 
vnotice();
?>
      <div class="form-slider"><label for="name">Name</label><input type="text" id="name" name="name" value="<?php 
vecho('Lname');
?>
" required /></div>
      <div class="form-slider"><label for="email">Email</label><input type="email" id="email" name="email" value="<?php 
vecho('Lemail');
?>
" required /></div>
      <br />
      <left>Please describe the bug (what you did, what the bug was, what were you trying to do) or write your feedback:</left>
      <div class="form-slider"><textarea id="feedback" name="feedback" required><?php 
vecho('feedback');
?>
</textarea></div>
      <br>
      <left><input type="checkbox" name="terms2" id="terms2" value="agree" required /> <label for="terms2">I have read, understand, and agree to be bound by the <a href="terms.php" style="color:#035d75">Terms of Service.</a></label></left>
      <?php 
vnotice();
?>
      <input type="submit" name="send" value="Send Report" />
    </form>
  </div>
</panel>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:30,代码来源:feedback.php


示例7: url

              </div>
            </div>
            <div class="icon" style="background-image: url('<?php 
echo $GLOBALS['dirpre'];
?>
assets/gfx/salaryico.png');">
              <div class="cell">
                <subheadline>
                <?php 
if (vget('salarytype') != "other") {
    echo '$';
}
vecho('salary');
if (vget('salarytype') != "other") {
    echo ' / ';
    vecho('salarytype');
}
?>
                </subheadline>
                <small>Compensation</small>
              </div>
            </div>

          </td>
        </tr>
      </table>
    </div>

    <?php 
vpartial('fb', array('route' => 'jobs/job.php?id=' . vget('_id')));
?>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:viewjob.php


示例8: vecho

  @media (max-width: 1000px) {
    .form-slider label {
      color: #fff;
    }
  }
</style>

<panel class="search">
  <div class="content">
    <div class="tagline">Select Location &amp; Date</div>

    <form method="get" style="width: 300px;">
      <div class="form-slider"><label for="location">Address </label><input type="text" id="location" name="location" value="<?php 
vecho('location');
?>
" /></div>

      <div class="form-slider startdate"><label for="startdate">From </label><input class="datepicker" type="text" id="startdate" name="startdate" value="<?php 
vecho('startdate');
?>
" /></div>
      <div class="form-slider enddate"><label for="enddate">To </label><input class="datepicker" type="text" id="enddate" name="enddate" value="<?php 
vecho('enddate');
?>
" /></div>

      <input type="submit" name="search" value="Search" />
    </form>
  </div>
</panel>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:30,代码来源:start.php


示例9: vnotice

function vnotice()
{
    vecho('Success', "<div class=\"success\">{var}</div>");
    vecho('Error', "<div class=\"error\">{var}</div>");
}
开发者ID:edwardshe,项目名称:sublite-1,代码行数:5,代码来源:view.php


示例10: array

<?php

$buildingtypes = array("Apartment Building", "Student Housing (Dorm)", "Elevator Building", "Walk-Up", "Town-House", "Brownstone", "Rowhouse", "Duplex", "House", "Other");
if (!is_null(vget('any'))) {
    array_unshift($buildingtypes, 'Any');
}
?>

<div class="form-slider"><label for="buildingtype">Building type: </label>
<select id="buildingtype" name="buildingtype" required>
  <?php 
vecho('buildingtype', '<option selected="selected">{var}</option>');
foreach ($buildingtypes as $buildingtype) {
    echo "<option>{$buildingtype}</option>";
}
?>
</select></div>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:17,代码来源:buildingtype.php


示例11: vecho

vecho('school');
?>
" /></div>

      <div class="form-slider"><label for="gender">Gender: </label>
        <select id="gender" name="gender" class="capitalize" required>
          <?php 
vecho('gender', '<option selected="selected">{var}</option>');
?>
          <option value="male">Male</option>
          <option value="female">Female</option>
          <option value="other">Other</option>
        </select>
      </div>

      <?php 
vpartial('s3single', array('s3name' => 'photo', 's3title' => 'Upload a profile picture *: ', 's3link' => vget('photo')));
?>

      <div class="form-slider"><label for="bio" class="fortextarea">About yourself: (max. 1000 characters)*</label><textarea id="bio" name="bio" maxlength="1000"><?php 
vecho('bio');
?>
</textarea></div>

      <?php 
vnotice();
?>
      <input type="submit" name="edit" value="Update Profile" />
    </form>
  </div>
</panel>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:form.php


示例12: vecho

    }
}
?>

      <?php 
if (vget('Loggedinstudent')) {
    ?>
        <br /><br />
        <?php 
    View::partial('newmessage', ['from' => View::get('L_id'), 'to' => View::get('recruiterid'), 'text' => 'Message']);
    ?>
      <?php 
}
?>
    </div>

    <a href="search.php?byrecruiter=<?php 
vecho('recruiterid');
?>
"><input type="button" value="View Job Listings" /></a>

    <?php 
if (vget('isme')) {
    ?>
      <br /><br />
      <a href="editprofile.php"><input type="button" value="Edit Profile" /></a>
    <?php 
}
?>
  </div>
</panel>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:profile.php


示例13: test

test(0, 110, 0, 110);
#   case C)   plot_min < 0 < plot_max         [----0----]
test(-60, 60, -60, 60);
#   case D)   plot_min < plot_max == 0     [-------0
test(-60, 0, -60, 0);
#   case E)   plot_min < plot_max < 0    [-----]   0
test(-60, -20, -60, -20);
vecho("=== Powers of 10 ranges\n");
for ($r = 0.01; $r <= 100; $r *= 10) {
    test(0, $r, 0, $r);
}
for ($r = 0.01; $r <= 100; $r *= 10) {
    test(-$r, 0, -$r, 0);
}
for ($r = 0.01; $r <= 100; $r *= 10) {
    test(-$r, $r, -$r, $r);
}
vecho("=== Negative vs positive ranges\n");
test(10, 100, 10, 100);
test(-100, -10, -100, -10);
test(-100, 10, -100, 10);
test(-10, 100, -10, 100);
vecho("=== Regressive cases\n");
test(0, 0, 0, 0);
test(100, 100, -100, -100);
test(-100, -100, 100, 100);
# ======== End of test cases and error reporting ==========
echo basename(__FILE__) . " results: {$n_tests} test cases, {$n_pass} pass, {$n_fail} fail\n";
if ($n_fail > 0) {
    exit(1);
}
开发者ID:myfarms,项目名称:PHPlot,代码行数:31,代码来源:u.calcplotareaworld.php


示例14: vecho

  <div class="cell">
    <div class="banner">
      <div class="content">
        <div class="tagline">Join the social hubs!</div>
        <div class="slogan">
          Meet other students working in the same city as you are!
        </div>
        <?php 
if (vget('Loggedinstudent')) {
    ?>
            <?php 
    if (vget('myhub')) {
        ?>
              <div id="tohub">
                <a href="hub.php?id=<?php 
        vecho('myhub');
        ?>
">
                  <input type="button" value="Take me to my hub" />
                </a>

                <div class="whitetext">
                  <br /><br />
                  <big>&mdash; OR &mdash;</big>
                  <br /><br />
            <?php 
    }
    ?>

            <div class="whitetext">
              Select a Hub to Join!
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:index.php


示例15: vecho

<style>iframe { margin: 0; }</style>
<div class="fb-like" data-href="https://sublite.net/<?php 
vecho('route');
?>
" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true" style="z-index: 2;"></div>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:5,代码来源:fb.php


示例16: vecho

      
      If you are an undergraduate student, enter your class year:
      <div class="form-slider"><label for="class">Class Year</label><input type="text" id="class" name="class" value="<?php 
vecho('class');
?>
" /></div>
      If you are a graduate student, enter your school:
      <div class="form-slider"><label for="school">(eg. Law School, Business School)</label><input type="text" id="name" name="school" value="<?php 
vecho('school');
?>
" /></div>

      <div class="form-slider"><label for="gender">Gender: </label>
        <select id="gender" name="gender" required>
          <?php 
vecho('gender', '<option selected="selected">{var}</option>');
?>
          <option value="male">Male</option>
          <option value="female">Female</option>
          <option value="other">Other</option>
        </select>
      </div>

      <?php 
vpartial('s3single', array('s3name' => 'photo', 's3title' => 'Upload a profile picture *: ', 's3link' => vget('photo')));
?>

      <?php 
vnotice();
?>
      <input type="submit" name="register" value="Register" />
开发者ID:edwardshe,项目名称:sublite-1,代码行数:30,代码来源:confirm.php


示例17: url

    margin: 0 auto;
  }
</style>
<panel>
  <div class="content">
    <headline>Personal Profile</headline>
    <div class="studentinfo">
      <div class="studentpic" style="background-image: url('<?php 
vecho('photo');
?>
');"></div>

      <subheadline><?php 
vecho('name');
?>
</subheadline>
      <?php 
vecho('school');
?>
 '<?php 
vecho('class');
?>

      <br /><br />
      <div><?php 
echo vlinkto('<input type="button" value="Edit Profile" />', 'editprofile');
?>
</div>
    </div>
  </div>
</panel>
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:home.php


示例18: vecho

</subheadline>

<div class="iframe"><iframe class="S3" src="S3.php?name=<?php 
vecho('s3name');
?>
"></iframe></div>

<subheadline>Current Photos</subheadline>
<div class="img" type="multiple" name="<?php 
vecho('s3name');
?>
">None</div>

<script>
  function addImg<?php 
vecho('s3name');
?>
(url, name) {
    if ($('.img[name='+name+']').html() == 'None') $('.img[name='+name+']').html('');

    $('.inputs[name='+name+']')
      .prepend('<input class="imginput" type="hidden" name="'+name+'[]" value="' + url + '" />');
    $('.img[name='+name+']')
      .prepend('<img class="img" src="' + url + '" />');

    $('.img[name='+name+'] img[src="'+url+'"]').click(function() {
      $('.inputs[name='+name+'] .imginput[value="'+url+'"]').remove();
      $(this).remove();

      if ($('.img[name='+name+']').html() == '') $('.img[name='+name+']').html('None');
    });
开发者ID:davidliuliuliu,项目名称:sublite,代码行数:31,代码来源:s3multiple.php


示例19: vecho

?>
" /></div>
      <div class="form-slider"><label for="freeanswer2">Answer #2 (max. 500 characters)</label><textarea id="freeanswer2" name="freeanswer2" maxlength="500"><?php 
vecho('freeanswer2');
?>
</textarea></div>

      <?php 
vnotice();
?>
      <right>
        <input type="submit" name="<?php 
vecho('submitname');
?>
" value="<?php 
vecho('submitvalue');
?>
" />
      </right>
    </form>
  </div>
</panel>

<script>
  <?php 
if (vget('submitname') == 'add') {
    ?>
    formunloadfunction(function() { saveForm('#company') });
  <?php 
} else {
    ?>
开发者ID:edwardshe,项目名称:sublite-1,代码行数:31,代码来源:companyform.php


示例20: vecho

?>
../housing/Manage.php">Manage</a>, clicking a listing to access its editing page, and unchecking the Publish? option. Next year when you’re ready to sublet again, simply check Publish? again to reactivate. You can also make edits to your listings anytime.

      <subheadline>What legal issues should I consider before hosting on SubLite?</subheadline>
      Make sure you have permission from your landlord or owner of your space to sublet. Before you list, you will have to agree that you can legally sublet according to our Terms of Use. 

      Please also ensure all information in your listing is accurate and not misleading. For more guidance, refer to our Terms of Use.

      <subheadline>When should I contact a host?</subheadline>
      As soon as you find a space that interests you. Don’t wait until the last-minute, or it may be gone! 
      <br />
      Legitimate reasons to contact another user are to ask questions about the amenities and to inquire about price. Please contact hosts in good-faith. Spamming is expressly prohibited. For more guidance, refer to our <a href="<?php 
vecho('dirpre');
?>
../terms.php">Terms of Use</a>.

      <subheadline>What will my listing and profile information be used for?</subheadline>
      We will use this solely to enhance the search functionality of SubLite to make it easier to connect hosts and guests. We require your property’s address so other users can estimate proximity to their workplace. Your exact address will not be disclosed. 
      <br />
      We will not sell your information. You may see targeted advertising from sponsors based solely on non-identifying information such as your university and class year. We will not pass any of your information along to your universities, unless you violate the Terms of Use. 
      <br />
      For more information, read our <a href="<?php 
vecho('dirpre');
?>
../privacy.php">Privacy Policy</a>.

      <subheadline>Where can I leave feedback?</subheadline>
      Whether you like our website or not, we want to hear what you have to say. If you have a funny or horrific summer housing experience, we also want to hear from you. Email us at <a href="mailto: [email protected]">[email protected]</a>.
    </left>
  </div>
</panel>
开发者ID:edwardshe,项目名称:sublite-1,代码行数:31,代码来源:faq.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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