本文整理匯總了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>