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


PHP have_right函数代码示例

本文整理汇总了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;未经允许,请勿转载。