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

PHP have_right函数代码示例

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

本文整理汇总了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">&nbsp;</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>
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:cheque_voucher.php


示例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">&nbsp;</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>
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:cash_book.php


示例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>
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:sales_return.php


示例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">&nbsp;</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 
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:cash_book.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">&nbsp;</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>
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:order.php


示例6:

									</td>
									<td class="tablebody">&nbsp;</td>
									<td class="tablebody tdhide">&nbsp;</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>
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:sales_return.php


示例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 
开发者ID:erkmen,项目名称:wpstartersetup,代码行数:30,代码来源:browse.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">&nbsp;</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>
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:godown_transfer.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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