當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。