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


PHP vecho函数代码示例

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


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


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