本文整理汇总了PHP中main::basea_encode方法的典型用法代码示例。如果您正苦于以下问题:PHP main::basea_encode方法的具体用法?PHP main::basea_encode怎么用?PHP main::basea_encode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类main
的用法示例。
在下文中一共展示了main::basea_encode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
background: -ms-linear-gradient(top, #cc0000 0%,#cc0000 100%); /* IE10+ */
background: linear-gradient(to bottom, #cc0000 0%,#cc0000 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc0000', endColorstr='#cc0000',GradientType=0 ); /* IE6-9 */
}
</style>
<div>
<?
$query="select distinct u.id id,
u.user_name name
FROM friends fr
INNER JOIN users u on u.id=fr.friendsuserid
where fr.userid=".$_SESSION['id'];
if($r=$db->q($query))
while($row=$r->row())
{?>
<div class="userList" id="<?php
echo main::basea_encode(array(1, $row['id'], 1));
?>
">
<p><?php
echo $row['name'];
?>
</p>
<span></span>
<img src="offline.png" />
</div>
<? }
?>
</div>
示例2: Identity
?>
</div>
</div>
<div id="msgBox" class="messages">Messages</div>
<div class="new">
<div class="input-wrapper">
<input type="text" id="newmessage" placeholder="Send a Message">
</div>
<button class="btn" onclick="sendMessage()">Send</button>
</div>
</div>
<div id="friendsDiv">
<p id="addBanner"><font size="4">Friendster ID : <?php
echo main::basea_encode(array(1, $_SESSION['id'], 1));
?>
</p>
<input id="friendsInput" placeholder="Enter Friends ID here to add them"/>
<button class="btn" onclick="addFriend()">Add Friend</button>
<button class="btn" onclick="$('#friendsDiv').hide()">Close</button>
</div>
<div id="locationDiv">
<article id="map"> <span id="status">Friendster is finding your location...</span> </article>
<iframe id="mapLocation"></iframe>
<button id="mapClose" class="btn" onclick="$('#locationDiv').hide()">Close</button>
</div>
<div class="settings" id="settingsConfirmDiv">
<p>Confirm your Identity (Required)</p>