本文整理汇总了PHP中have_right函数的典型用法代码示例。如果您正苦于以下问题:PHP have_right函数的具体用法?PHP have_right怎么用?PHP have_right使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了have_right函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<tr>
<td class="tablebody" style="text-align:center;"><em>Totals:</em></td>
<td class="tablebody">
<input type="text" name="total" id="total" value="<?php
echo $tr;
?>
" disabled="disabled" class="inputs" style="text-align:right;" />
</td>
<td class="tablebody" colspan="3"> </td>
</tr>
<tr>
<td colspan="5">
<input type="button" name="btn" id="btn" value="Add Row" style="width:100px" onclick="addRow(1)" />
<?php
$dis = "";
if (!have_right('can_update') || !have_right('can_create') || $cheque_id == 0) {
$dis = " disabled=\"disabled\"";
}
?>
<input type="button" name="Submit" id="Submit" value="Submit" style="width:100px;" onclick="doSubmit(this);"<?php
echo $dis;
?>
/>
<?php
if ($cheque_id == 0) {
?>
<span id="cshd" class="dnote">Cheque Voucher disabled as no Cheque in Hand selected</span><?php
}
?>
</td>
</tr>
示例2:
" disabled="disabled" class="inputs" style="text-align:right;" />
</td>
<td class="tablebody">
<input type="text" name="total4" id="total4" value="<?php
echo $tp;
?>
" disabled="disabled" class="inputs" style="text-align:right;" />
</td>
<td class="tablebody"> </td>
</tr>
<tr>
<td colspan="5">
<input type="button" name="btn" id="btn" value="Add Row" style="width:100px" onclick="addRow(1)" />
<?php
$dis = "";
if (!have_right('can_update') || !have_right('can_create')) {
$dis = " disabled=\"disabled\"";
}
?>
<input type="button" name="Submit" id="Submit" value="Submit" style="width:100px;" onclick="javascript:doSubmit(this);"<?php
echo $dis;
?>
/>
</td>
</tr>
</tfoot>
</table>
<input type="hidden" name="counter" id="counter" value="0" />
</form>
</div>
</div>
示例3: have_right
</tfoot>
</table>
<input type="hidden" name="oper" id="oper" value="<?php
if (isset($_GET['sales_return_id'])) {
echo "update";
} else {
echo "add";
}
?>
" />
<input type="hidden" name="counter" id="counter" value="0" />
<input type="hidden" name="totalSum" id="totalSum" value="0" />
<input type="hidden" name="totalSale" id="totalSale" value="0" />
<input type="hidden" name="totalTax" id="totalTax" value="0" />
</form>
<input type="hidden" name="have_right_update" id="have_right_update" value="<?php
echo have_right('can_update');
?>
" />
</div>
</div>
</div>
</div>
<div> <?php
include '../includes/footer.php';
?>
</div>
</div>
</body>
</html>
示例4:
" disabled="disabled" class="inputs" style="text-align:right;" />
</td>
<td class="tablebody">
<input type="text" name="total4" id="total4" value="<?php
echo $tp;
?>
" disabled="disabled" class="inputs" style="text-align:right;" />
</td>
<td class="tablebody"> </td>
</tr>
<tr>
<td colspan="5">
<input type="button" name="btn" id="btn" value="Add Row" style="width:100px" onclick="addRow(1)" />
<?php
$dis = "";
if (!have_right('can_update') || !have_right('can_create') || strlen($v_ch_id) < 1) {
$dis = " disabled=\"disabled\"";
}
?>
<!-- Add by Khurram Naseem on Apr-30-2013! -->
<?php
$dis = "";
if ($v_is_active == 'No') {
$dis = " disabled=\"disabled\"";
}
?>
<input type="button" name="Submit" id="Submit" value="Submit" style="width:100px;" onclick="doSubmit(this);"<?php
echo $dis;
?>
/>
<?php
示例5:
<tr>
<td class="tablebody" style="text-align:center;"><em>Totals:</em></td>
<td class="tablebody">
<input type="text" name="total2" id="total2" value="<?php
echo $qty;
?>
" disabled="disabled" class="inputs" style="text-align:right;" />
</td>
<td class="tablebody"> </td>
</tr>
<tr>
<td colspan="6">
<input type="button" name="btn" id="btn" value="Add Row" style="width:100px" onclick="addRow(1)" />
<?php
$dis = "";
if (isset($_GET['order_id']) && !have_right('can_update') || !isset($_GET['order_id']) && !have_right('can_create')) {
$dis = " disabled=\"disabled\"";
}
?>
<input type="button" name="Submit" id="Submit" value="Submit" style="width:100px;" onclick="javascript:doSubmit(this);"<?php
echo $dis;
?>
/><?php
if (isset($_GET['order_id'])) {
?>
<input type="button" name="NewRecord" id="NewRecord" value="New Record" style="width:100px;" onclick="javascript:document.location.href='../transaction/order.php';" /><?php
}
?>
</td>
</tr>
</tfoot>
示例6:
</td>
<td class="tablebody"> </td>
<td class="tablebody tdhide"> </td>
<td class="tablebody">
<input type="text" name="total4" id="total4" value="<?php
echo $amt;
?>
" disabled="disabled" style="text-align:right;" class="inputs" />
</td>
</tr>
<tr>
<td colspan="6">
<input type="button" name="btn" id="btn" value="Add Row" style="width:100px" onclick="addRow(1)" />
<?php
$dis = "";
if (isset($_GET['sales_return_id']) && !have_right('can_update') || !isset($_GET['sales_return_id']) && !have_right('can_create')) {
$dis = " disabled=\"disabled\"";
}
?>
<input type="button" name="Submit" id="Submit" value="Submit" style="width:100px;" onclick="javascript:doSubmit(this);"<?php
echo $dis;
?>
/><?php
if (isset($_GET['sales_return_id'])) {
?>
<input type="button" name="NewRecord" id="NewRecord" value="New Record" style="width:100px;" onclick="javascript:document.location.href='../transaction/sales_return.php';" /><?php
}
?>
</td>
</tr>
</tfoot>
示例7: _e
<li><a id="apm-action-all-publish" href="#"><?php
_e('Publish', ApmConfig::i18n_domain);
?>
</a></li>
<li><a id="apm-action-all-unpublish" href="#"><?php
_e('Unpublish', ApmConfig::i18n_domain);
?>
</a></li>
<li><a id="apm-action-all-models" href="#"><?php
_e('Change Template', ApmConfig::i18n_domain);
?>
</a></li>
<?php
if (have_right()) {
?>
<li><a id="apm-action-all-delete" href="#"><?php
_e('Delete', ApmConfig::i18n_domain);
?>
</a></li>
<?php
}
?>
</ul>
</div>
</div>
<!-- Pagination -->
<?php
示例8:
<tr>
<td class="tablebody" style="text-align:center;"><em>Totals:</em></td>
<td class="tablebody">
<input type="text" class="inputs" name="total2" id="total2" value="<?php
echo $qty;
?>
" disabled="disabled" style="text-align:right;" />
</td>
<td class="tablebody" colspan="3"> </td>
</tr>
<tr>
<td colspan="6">
<input type="button" name="btn" id="btn" value="Add Row" style="width:100px" onclick="addRow(1)" />
<?php
$dis = "";
if (isset($_GET['godown_transfer_id']) && !have_right('can_update') || !isset($_GET['godown_transfer_id']) && !have_right('can_create')) {
$dis = " disabled=\"disabled\"";
}
?>
<input type="button" name="Submit" id="Submit" value="Submit" style="width:100px;" onclick="javascript:doSubmit(this);"<?php
echo $dis;
?>
/><?php
if (isset($_GET['godown_transfer_id'])) {
?>
<input type="button" name="NewRecord" id="NewRecord" value="New Record" style="width:100px;" onclick="javascript:document.location.href='../transaction/godown_transfer.php';" /><?php
}
?>
</td>
</tr>
</tfoot>