本文整理汇总了PHP中web_delete_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP web_delete_icon函数的具体用法?PHP web_delete_icon怎么用?PHP web_delete_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了web_delete_icon函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: web_AvailableDBBackupsList
function web_AvailableDBBackupsList()
{
$backupsPath = DATA_PATH . 'backups/sql/';
$availbacks = rcms_scandir($backupsPath);
$result = __('No existing DB backups here');
if (!empty($availbacks)) {
$cells = wf_TableCell(__('Date'));
$cells .= wf_TableCell(__('Size'));
$cells .= wf_TableCell(__('Filename'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
foreach ($availbacks as $eachDump) {
$fileDate = filectime($backupsPath . $eachDump);
$fileDate = date("Y-m-d H:i:s", $fileDate);
$fileSize = filesize($backupsPath . $eachDump);
$fileSize = stg_convert_size($fileSize);
$encodedDumpPath = base64_encode($backupsPath . $eachDump);
$downloadLink = wf_Link('?module=backups&download=' . $encodedDumpPath, $eachDump, false, '');
$actLinks = wf_JSAlert('?module=backups&deletedump=' . $encodedDumpPath, web_delete_icon(), __('Removing this may lead to irreparable results')) . ' ';
$actLinks .= wf_Link('?module=backups&download=' . $encodedDumpPath, wf_img('skins/icon_download.png', __('Download')), false, '');
$actLinks .= wf_JSAlert('?module=backups&restore=true&restoredump=' . $encodedDumpPath, wf_img('skins/icon_restoredb.png', __('Restore DB')), __('Are you serious'));
$cells = wf_TableCell($fileDate);
$cells .= wf_TableCell($fileSize);
$cells .= wf_TableCell($downloadLink);
$cells .= wf_TableCell($actLinks);
$rows .= wf_TableRow($cells, 'row3');
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
}
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例2: render
/**
* Renders list of available SMS in queue with some controls
*
* @return string
*/
public function render()
{
$result = '';
if (!empty($this->queue)) {
$cells = wf_TableCell(__('Date'));
$cells .= wf_TableCell(__('Mobile'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
foreach ($this->queue as $io => $each) {
$cells = wf_TableCell($each['date']);
$cells .= wf_TableCell($each['number']);
$actLinks = wf_modalAuto(wf_img('skins/icon_search_small.gif', __('Preview')), __('Preview'), $this->smsPreview($each), '');
$actLinks .= wf_JSAlert('?module=tsmsqueue&deletesms=' . $each['filename'], web_delete_icon(), __('Are you serious'));
$cells .= wf_TableCell($actLinks);
$rows .= wf_TableRow($cells, 'row3');
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
} else {
$result .= wf_tag('span', false, 'alert_info');
$result .= wf_tag('center', false);
$result .= __('Nothing found');
$result .= wf_tag('center', true);
$result .= wf_tag('span', true);
}
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例3: web_list_admins
/**
* Returns available administrators list
*
* @return string
*/
function web_list_admins()
{
$alladmins = rcms_scandir(USERS_PATH);
$cells = wf_TableCell(__('Admin'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($alladmins)) {
foreach ($alladmins as $eachadmin) {
$actions = wf_JSAlert('?module=permissions&delete=' . $eachadmin, web_delete_icon(), 'Removing this may lead to irreparable results');
$actions .= wf_Link('?module=permissions&passwd=' . $eachadmin, web_key_icon());
$actions .= wf_Link('?module=permissions&edit=' . $eachadmin, web_edit_icon('Rights'));
$cells = wf_TableCell($eachadmin);
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$form = wf_TableBody($rows, '100%', '0', 'sortable');
return $form;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php
示例4: web_NasTemplatesShow
function web_NasTemplatesShow()
{
$query = "SELECT * from `nastemplates`";
$alltemplates = simple_queryall($query);
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('NAS'));
$tablecells .= wf_TableCell(__('Template'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($alltemplates)) {
foreach ($alltemplates as $io => $eachtemplate) {
$nasdata = zb_NasGetData($eachtemplate['nasid']);
$tablecells = wf_TableCell($eachtemplate['id']);
$tablecells .= wf_TableCell($eachtemplate['nasid'] . ':' . $nasdata['nasname']);
$tablecells .= wf_TableCell('<pre>' . $eachtemplate['template'] . '</pre>');
$actions = wf_JSAlert("?module=radiust&delete=" . $eachtemplate['id'], web_delete_icon(), 'Are you serious');
$actions .= wf_Link("?module=radiust&edit=" . $eachtemplate['id'], web_edit_icon(), false, '');
$tablecells .= wf_TableCell($actions);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
show_window(__('Available NAS Radius attribute templates'), $result);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:api.radius.php
示例5: web_PhpConsoleShowTemplates
function web_PhpConsoleShowTemplates()
{
$alltemplatekeys = zb_StorageFindKeys('PHPCONSOLETEMPLATE:');
$tablecells = wf_TableCell(__('Template'), '80%');
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($alltemplatekeys)) {
foreach ($alltemplatekeys as $eachtemplatekey) {
$templatearray = zb_PhpConsoleGetTemplate($eachtemplatekey['key']);
$templatename = $templatearray['name'];
$templatebody = $templatearray['body'];
//show code template
$runlink = wf_JSAlert('?module=sqlconsole&devconsole=true&runtpl=' . $eachtemplatekey['key'], $templatename, 'Insert this template into PHP console');
$tablecells = wf_TableCell($runlink);
$actionlinks = wf_JSAlert('?module=sqlconsole&devconsole=true&deltemplate=' . $eachtemplatekey['key'], web_delete_icon(), 'Are you serious');
$actionlinks .= wf_Link('?module=sqlconsole&devconsole=true&edittemplate=' . $eachtemplatekey['key'], web_edit_icon());
$tablecells .= wf_TableCell($actionlinks);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$createlink = __('Available code templates') . ' ' . wf_Link("?module=sqlconsole&devconsole=true&templateadd=true", wf_img("skins/icon_add.gif", __('Create')), false);
$result = $createlink . ' ' . wf_TableBody($tablerows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php
示例6: web_SwitchEditForm
/**
* Returns switch edit form for some existing device ID
*
* @param int $switchid
* @return string
*/
function web_SwitchEditForm($switchid)
{
global $ubillingConfig;
$switchid = vf($switchid, 3);
$altCfg = $ubillingConfig->getAlter();
$result = '';
$allswitchmodels = zb_SwitchModelsGetAllTag();
$switchdata = zb_SwitchGetData($switchid);
$editinputs = wf_Selector('editmodel', $allswitchmodels, 'Model', $switchdata['modelid'], true);
$editinputs .= wf_TextInput('editip', 'IP', $switchdata['ip'], true, 20);
$editinputs .= wf_TextInput('editlocation', 'Location', $switchdata['location'], true, 30);
$editinputs .= wf_TextInput('editdesc', 'Description', $switchdata['desc'], true, 30);
$editinputs .= wf_TextInput('editsnmp', 'SNMP community', $switchdata['snmp'], true, 20);
$editinputs .= wf_TextInput('editgeo', 'Geo location', $switchdata['geo'], true, 20);
$editinputs .= web_SwitchUplinkSelector('editparentid', __('Uplink switch'), $switchdata['parentid']);
$editinputs .= wf_tag('br');
$editinputs .= wf_Submit('Save');
$result .= wf_Form('', 'POST', $editinputs, 'glamour');
$result .= wf_tag('div', false, '', 'style="clear:both;"') . wf_tag('div', true);
$result .= wf_delimiter();
$result .= wf_Link('?module=switches', __('Back'), false, 'ubButton');
if (cfr('SWITCHPOLL')) {
$fdbCacheName = 'exports/' . $switchdata['ip'] . '_fdb';
if (file_exists($fdbCacheName)) {
$result .= wf_Link('?module=switchpoller&fdbfor=' . $switchdata['ip'], wf_img('skins/menuicons/switchpoller.png') . ' ' . __('Current FDB cache'), false, 'ubButton');
}
if (!empty($switchdata['snmp'])) {
$result .= wf_Link('?module=switchpoller&switchid=' . $switchid, wf_img('skins/snmp.png') . ' ' . __('SNMP query'), false, 'ubButton');
}
}
if (!empty($switchdata['ip'])) {
$result .= wf_AjaxLink('?module=switches&backgroundicmpping=' . $switchdata['ip'], wf_img('skins/ping_icon.png') . ' ' . __('ICMP ping'), 'icmppingcontainer', false, 'ubButton');
}
if (isset($altCfg['SW_WEBNAV'])) {
if ($altCfg['SW_WEBNAV']) {
$result .= ' ' . wf_tag('a', false, 'ubButton', 'href="http://' . $switchdata['ip'] . '" target="_BLANK"') . wf_img('skins/ymaps/globe.png') . ' ' . __('Go to the web interface') . wf_tag('a', true) . ' ';
}
}
if (cfr('SWITCHEDIT')) {
if (!ispos($switchdata['desc'], 'NP')) {
$result .= wf_JSAlertStyled('?module=switchreplace&switchid=' . $switchid, wf_img('skins/duplicate_icon.gif') . ' ' . __('Replacement'), __('Are you serious'), 'ubButton') . ' ';
}
}
if (cfr('SWITCHESEDIT')) {
$result .= wf_JSAlertStyled('?module=switches&switchdelete=' . $switchid, web_delete_icon() . ' ' . __('Delete'), 'Removing this may lead to irreparable results', 'ubButton');
}
if (!empty($switchdata['ip'])) {
$result .= wf_AjaxLoader();
$result .= wf_AjaxContainer('icmppingcontainer');
}
return $result;
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:58,代码来源:api.switches.php
示例7: renderList
/**
* Returns available time rules grid
*
* @return string
*/
public function renderList()
{
$messages = new UbillingMessageHelper();
$allTariffs = zb_TariffGetPricesAll();
$query = "SELECT * from `dshape_time` ORDER BY `id` ASC";
$allrules = simple_queryall($query);
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Tariff'));
$cells .= wf_TableCell(__('Time from'));
$cells .= wf_TableCell(__('Time to'));
$cells .= wf_TableCell(__('Speed'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($allrules)) {
foreach ($allrules as $io => $eachrule) {
$rowClass = isset($allTariffs[$eachrule['tariff']]) ? 'row3' : 'sigdeleteduser';
$tariffControl = cfr('TARIFFSPEED') ? wf_Link('?module=tariffspeeds&tariff=' . $eachrule['tariff'], $eachrule['tariff'], false) : $eachrule['tariff'];
$cells = wf_TableCell($eachrule['id']);
$cells .= wf_TableCell($tariffControl);
$cells .= wf_TableCell($eachrule['threshold1']);
$cells .= wf_TableCell($eachrule['threshold2']);
$cells .= wf_TableCell($eachrule['speed']);
$actions = wf_JSAlert('?module=dshaper&delete=' . $eachrule['id'], web_delete_icon(), $messages->getDeleteAlert());
$actions .= wf_JSAlert('?module=dshaper&edit=' . $eachrule['id'], web_edit_icon(), $messages->getEditAlert());
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, $rowClass);
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:36,代码来源:api.dshaper.php
示例8: catvbs_ShowAllStatements
function catvbs_ShowAllStatements()
{
$query = "SELECT DISTINCT `hash`,`date` from `catv_bankstaparsed` ORDER BY `date` DESC";
$allstatements = simple_queryall($query);
if (!empty($allstatements)) {
$tablecells = wf_TableCell(__('Date'));
$tablecells .= wf_TableCell(__('Payments count'));
$tablecells .= wf_TableCell(__('Processed'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
foreach ($allstatements as $io => $eachstatement) {
$statementlink = wf_Link("?module=catv_banksta&showhash=" . $eachstatement['hash'], $eachstatement['date']);
$rowcount_q = "SELECT COUNT(`id`) from `catv_bankstaparsed` WHERE `hash`='" . $eachstatement['hash'] . "'";
$rowcount = simple_query($rowcount_q);
$rowcount = $rowcount['COUNT(`id`)'];
$tablecells = wf_TableCell($statementlink);
$tablecells .= wf_TableCell($rowcount);
$tablecells .= wf_TableCell(catvbs_CheckProcessed($eachstatement['hash']));
$tablecells .= wf_TableCell(wf_JSAlert('?module=catv_banksta&deletehash=' . $eachstatement['hash'], web_delete_icon(), 'Removing this may lead to irreparable results'));
$tablerows .= wf_TableRow($tablecells, 'row3');
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
} else {
$result = __('Any statements uploaded');
}
show_window(__('Previously uploaded statements'), $result);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:27,代码来源:api.catv.php
示例9: web_TsmsExcludeOpts
function web_TsmsExcludeOpts()
{
$excludedUsers = tsms_GetExcludeUsers();
$alladdress = zb_AddressGetFulladdresslist();
$allrealnames = zb_UserGetAllRealnames();
$allphones = tsms_GetAllMobileNumbers();
$cells = wf_TableCell(__('Login'));
$cells .= wf_TableCell(__('Full address'));
$cells .= wf_TableCell(__('Real Name'));
$cells .= wf_TableCell(__('Phone'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($excludedUsers)) {
foreach ($excludedUsers as $eachlogin => $io) {
$cells = wf_TableCell(wf_Link("?module=userprofile&username=" . $eachlogin, web_profile_icon() . ' ' . $eachlogin));
$cells .= wf_TableCell(@$alladdress[$eachlogin]);
$cells .= wf_TableCell(@$allrealnames[$eachlogin]);
$cells .= wf_TableCell(@$allphones[$eachlogin]);
$cells .= wf_TableCell(wf_JSAlert("?module=turbosms&excludedelete=" . $eachlogin, web_delete_icon(), __('Are you serious')));
$rows .= wf_TableRow($cells, 'row3');
}
}
//adding form
$inputs = wf_TextInput('newexcludelogin', __('User login to exclude from sending'), '', true, '15');
$inputs .= wf_Submit('Save');
$result = wf_TableBody($rows, '100%', '0', 'sortable');
$result .= wf_delimiter();
$result .= wf_Form("", 'POST', $inputs, 'glamour');
return $result;
}
开发者ID:syscenter,项目名称:ubilling-sms,代码行数:30,代码来源:index.php
示例10: renderAllUserDocuments
/**
* Renders previously generated all users documents
*
* @return string
*/
public function renderAllUserDocuments()
{
$allAddress = zb_AddressGetFulladdresslistCached();
$allRealnames = zb_UserGetAllRealnames();
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Date'));
$cells .= wf_TableCell(__('Public'));
$cells .= wf_TableCell(__('Template'));
$cells .= wf_TableCell(__('Path'));
$cells .= wf_TableCell(__('Login'));
$cells .= wf_TableCell(__('Address'));
$cells .= wf_TableCell(__('Real Name'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($this->allUserDocuments)) {
foreach ($this->allUserDocuments as $io => $each) {
$cells = wf_TableCell($each['id']);
$cells .= wf_TableCell($each['date']);
$cells .= wf_TableCell(web_bool_led($each['public']));
@($templateName = $this->templates[$each['templateid']]['name']);
$cells .= wf_TableCell(wf_tag('abbr', false, '', 'title="' . $each['templateid'] . '"') . $templateName . wf_tag('abbr', true));
$downloadLink = wf_Link('?module=report_documents&documentdownload=' . $each['path'], $each['path'], false, '');
$cells .= wf_TableCell($downloadLink);
$profileLink = wf_Link('?module=userprofile&username=' . $each['login'], web_profile_icon() . ' ' . $each['login']);
$cells .= wf_TableCell($profileLink);
$cells .= wf_TableCell(@$allAddress[$each['login']]);
$cells .= wf_TableCell(@$allRealnames[$each['login']]);
$actionLinks = wf_JSAlert('?module=report_documents&deletedocument=' . $each['id'], web_delete_icon(), __('Are you serious'));
$cells .= wf_TableCell($actionLinks);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', '0', '');
return $result;
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:40,代码来源:api.documents.php
示例11: gen_check_users
function gen_check_users()
{
global $etalon_day_band, $control_tariffs, $etalon_speed, $cur_day, $home_band_p;
$tariff_names = array_keys($control_tariffs);
$genocide_qarr = array();
$band_arr = array();
$geninputs = wf_TextInput('home_band_p', 'Normal bandwidth load', $home_band_p, false, '2') . ' %';
$geninputs .= wf_HiddenInput('change_settings', 'true') . ' ';
$geninputs .= wf_Submit('Change');
$genform = wf_Form('', 'POST', $geninputs, 'glamour');
$result = $genform;
$tablecells = wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('Normal day band'));
$tablecells .= wf_TableCell(__('Current date normal band'));
$tablecells .= wf_TableCell(__('Speed'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
$i = 0;
foreach ($control_tariffs as $eachtariff) {
@($cspeed_k = $etalon_speed / $eachtariff);
@($cband_k = $etalon_day_band / $cspeed_k);
$dband_l = $cband_k * $cur_day;
$band_arr[$i][$tariff_names[$i]] = $dband_l * 1024 * 1024;
$tablecells = wf_TableCell($tariff_names[$i]);
$tablecells .= wf_TableCell(stg_convert_size($cband_k * 1024 * 1024));
$tablecells .= wf_TableCell(stg_convert_size($band_arr[$i][$tariff_names[$i]]));
$tablecells .= wf_TableCell($eachtariff);
$gactions = wf_JSAlert('?module=genocide&delete=' . $tariff_names[$i], web_delete_icon(), 'Are you serious');
$tablecells .= wf_TableCell($gactions);
$tablerows .= wf_TableRow($tablecells, 'row3');
$i++;
}
//controlled tariffs
$result .= wf_TableBody($tablerows, '100%', '0', '');
$i = 0;
foreach ($band_arr as $eachtariff => $eachband) {
$query = "SELECT * from `users` WHERE `D0`+`U0`>'" . $eachband[$tariff_names[$i]] . "' and `Tariff`='" . $tariff_names[$i] . "';";
$genocide_qarr[] = $query;
$i++;
}
$tablecells = wf_TableCell(__('Login'));
$tablecells .= wf_TableCell(__('Full address'));
$tablecells .= wf_TableCell(__('Real Name'));
$tablecells .= wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('IP'));
$tablecells .= wf_TableCell(__('Downloaded'));
$tablecells .= wf_TableCell(__('Uploaded'));
$tablecells .= wf_TableCell(__('Total'));
$tablerows = wf_TableRow($tablecells, 'row1');
foreach ($genocide_qarr as $each_q) {
$genocide_users = simple_queryall($each_q);
if (!empty($genocide_users)) {
$alluseraddress = zb_AddressGetFulladdresslist();
$allusernames = zb_UserGetAllRealnames();
foreach ($genocide_users as $io => $eachuser) {
$profilelink = wf_Link('?module=userprofile&username=' . $eachuser['login'], web_profile_icon() . ' ' . $eachuser['login']);
$tablecells = wf_TableCell($profilelink);
$tablecells .= wf_TableCell(@$alluseraddress[$eachuser['login']]);
$tablecells .= wf_TableCell(@$allusernames[$eachuser['login']]);
$tablecells .= wf_TableCell($eachuser['Tariff']);
$tablecells .= wf_TableCell($eachuser['IP'], '', '', 'sorttable_customkey="' . ip2int($eachuser['IP']) . '"');
$tablecells .= wf_TableCell(stg_convert_size($eachuser['D0']), '', '', 'sorttable_customkey="' . $eachuser['D0'] . '"');
$tablecells .= wf_TableCell(stg_convert_size($eachuser['U0']), '', '', 'sorttable_customkey="' . $eachuser['U0'] . '"');
$tablecells .= wf_TableCell(stg_convert_size($eachuser['D0'] + $eachuser['U0']), '', '', 'sorttable_customkey="' . ($eachuser['D0'] + $eachuser['U0']) . '"');
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
}
$result .= wf_TableBody($tablerows, '100%', '0', 'sortable');
show_window(__('Genocide'), $result);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:71,代码来源:index.php
示例12: dhcp_show_available_nets
function dhcp_show_available_nets()
{
$query = "SELECT * from `dhcp`";
$allnets = simple_queryall($query);
$result = '<table width="100%" class="sortable" border="0" class="sortable">';
$result .= '
<tr class="row1">
<td>
ID
</td>
<td>
' . __('Network/CIDR') . '
</td>
<td>
' . __('DHCP custom subnet template') . '
</td>
<td>
' . __('DHCP config name') . '
</td>
<td>
' . __('Actions') . '
</td>
</tr>
';
if (!empty($allnets)) {
foreach ($allnets as $io => $eachnet) {
$netdata = multinet_get_network_params($eachnet['netid']);
$result .= '
<tr class="row3">
<td>
' . $eachnet['id'] . '
</td>
<td>
' . $netdata['desc'] . '
</td>
<td>
' . web_bool_led($eachnet['dhcpconfig']) . '
</td>
<td>
' . $eachnet['confname'] . '
</td>
<td>
' . wf_JSAlert('?module=dhcp&delete=' . $eachnet['id'], web_delete_icon(), 'Removing this may lead to irreparable results') . '
<a href="?module=dhcp&edit=' . $eachnet['id'] . '">' . web_edit_icon() . '</a>
</td>
</tr>
';
}
}
$result .= '</table>';
show_window(__('Available DHCP networks'), $result);
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:52,代码来源:api.networking.php
示例13: web_ExpressAddressAptForm
/**
* Returns expresscard address modify form
*
* @param $login - user login for modifying apt
*
* @return string
*/
function web_ExpressAddressAptForm($login)
{
$login = vf($login);
$aptdata = zb_AddressGetAptData($login);
$useraddress = zb_AddressGetFulladdresslist();
@($useraddress = $useraddress[$login]);
$buildid = $aptdata['buildid'];
$builddata = zb_AddressGetBuildData($buildid);
$buildnum = $builddata['buildnum'];
$streetid = $builddata['streetid'];
$streetdata = zb_AddressGetStreetData($streetid);
$streetname = $streetdata['streetname'];
$cityid = $streetdata['cityid'];
$citydata = zb_AddressGetCityData($cityid);
$cityname = $citydata['cityname'];
$inputs = __('Full address') . ': ';
$inputs .= wf_tag('b') . $useraddress . ' ' . wf_tag('b', true);
$inputs .= __('Entrance');
$inputs .= wf_TextInput('editentrance', '', @$aptdata['entrance'], false, '5');
$inputs .= __('Floor');
$inputs .= wf_TextInput('editfloor', '', @$aptdata['floor'], false, '5');
$inputs .= __('Apartment');
$inputs .= wf_TextInput('editapt', '', @$aptdata['apt'], false, '5');
$inputs .= wf_JSAlert('?module=expresscard&username=' . $login . '&orphan=true', web_delete_icon(), __('Are you sure you want to make the homeless this user') . "?");
//same data for passport apartment
$inputs .= wf_HiddenInput('samepapt', $aptdata['apt']);
$inputs .= wf_HiddenInput('samepbuild', $buildnum);
$inputs .= wf_HiddenInput('samepstreet', $streetname);
$inputs .= wf_HiddenInput('samepcity', $cityname);
return $inputs;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:38,代码来源:api.crm.php
示例14: web_TicketDialogue
/**
* Renders ticket, all of replies and all needed controls/forms for they
*
* @param int $ticketid
*
* @return string
*/
function web_TicketDialogue($ticketid)
{
$ticketid = vf($ticketid, 3);
$ticketdata = zb_TicketGetData($ticketid);
$ticketreplies = zb_TicketGetReplies($ticketid);
$result = wf_tag('p', false, '', 'align="right"') . wf_Link('?module=ticketing', 'Back to tickets list', true, 'ubButton') . wf_tag('p', true);
if (!empty($ticketdata)) {
$alladdress = zb_AddressGetFulladdresslist();
$allrealnames = zb_UserGetAllRealnames();
$alltariffs = zb_TariffsGetAllUsers();
$allcash = zb_CashGetAllUsers();
$allcredits = zb_CreditGetAllUsers();
$alluserips = zb_UserGetAllIPs();
if ($ticketdata['status']) {
$actionlink = wf_Link('?module=ticketing&openticket=' . $ticketdata['id'], 'Open', false, 'ubButton');
} else {
$actionlink = wf_Link('?module=ticketing&closeticket=' . $ticketdata['id'], 'Close', false, 'ubButton');
}
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('Date'));
$tablecells .= wf_TableCell(__('Login'));
$tablecells .= wf_TableCell(__('Real Name'));
$tablecells .= wf_TableCell(__('Full address'));
$tablecells .= wf_TableCell(__('IP'));
$tablecells .= wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('Balance'));
$tablecells .= wf_TableCell(__('Credit'));
$tablecells .= wf_TableCell(__('Processed'));
$tablerows = wf_TableRow($tablecells, 'row1');
$tablecells = wf_TableCell($ticketdata['id']);
$tablecells .= wf_TableCell($ticketdata['date']);
$profilelink = wf_Link('?module=userprofile&username=' . $ticketdata['from'], web_profile_icon() . ' ' . $ticketdata['from']);
$tablecells .= wf_TableCell($profilelink);
$tablecells .= wf_TableCell(@$allrealnames[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alladdress[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alluserips[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alltariffs[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$allcash[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$allcredits[$ticketdata['from']]);
$tablecells .= wf_TableCell(web_bool_led($ticketdata['status']));
$tablerows .= wf_TableRow($tablecells, 'row3');
$result .= wf_TableBody($tablerows, '100%', '0');
//ticket body
$tickettext = strip_tags($ticketdata['text']);
$tickettext = nl2br($tickettext);
$tablecells = wf_TableCell('', '20%');
$tablecells .= wf_TableCell($ticketdata['date']);
$tablerows = wf_TableRow($tablecells, 'row2');
$ticketauthor = wf_tag('center') . wf_tag('b') . @$allrealnames[$ticketdata['from']] . wf_tag('b', true) . wf_tag('center', true);
$ticketavatar = wf_tag('center') . wf_img('skins/userava.png') . wf_tag('center', true);
$ticketpanel = $ticketauthor . wf_tag('br') . $ticketavatar;
$tablecells = wf_TableCell($ticketpanel);
$tablecells .= wf_TableCell($tickettext);
$tablerows .= wf_TableRow($tablecells, 'row3');
$result .= wf_TableBody($tablerows, '100%', '0', 'glamour');
$result .= $actionlink;
}
if (!empty($ticketreplies)) {
$result .= wf_tag('h2') . __('Replies') . wf_tag('h2', true);
$result .= wf_CleanDiv();
foreach ($ticketreplies as $io => $eachreply) {
//reply
if ($eachreply['admin']) {
$replyauthor = wf_tag('center') . wf_tag('b') . $eachreply['admin'] . wf_tag('b', true) . wf_tag('center', true);
$replyavatar = wf_tag('center') . gravatar_ShowAdminAvatar($eachreply['admin'], '64') . wf_tag('center', true);
} else {
$replyauthor = wf_tag('center') . wf_tag('b') . @$allrealnames[$eachreply['from']] . wf_tag('b', true) . wf_tag('center', true);
$replyavatar = wf_tag('center') . wf_img('skins/userava.png') . wf_tag('center', true);
}
$replyactions = wf_tag('center');
$replyactions .= wf_JSAlert('?module=ticketing&showticket=' . $ticketdata['id'] . '&deletereply=' . $eachreply['id'], web_delete_icon(), 'Removing this may lead to irreparable results') . ' ';
$replyactions .= wf_JSAlert('?module=ticketing&showticket=' . $ticketdata['id'] . '&editreply=' . $eachreply['id'], web_edit_icon(), 'Are you serious');
$replyactions .= wf_tag('center', true);
// reply body
if (isset($_GET['editreply'])) {
if ($_GET['editreply'] == $eachreply['id']) {
//is this reply editing?
$replytext = web_TicketReplyEditForm($eachreply['id']);
} else {
//not this ticket edit
$replytext = strip_tags($eachreply['text']);
}
} else {
//normal text by default
$replytext = strip_tags($eachreply['text']);
$replytext = nl2br($replytext);
}
$replypanel = $replyauthor . wf_tag('br') . $replyavatar . wf_tag('br') . $replyactions;
$tablecells = wf_TableCell('', '20%');
$tablecells .= wf_TableCell($eachreply['date']);
$tablerows = wf_TableRow($tablecells, 'row2');
$tablecells = wf_TableCell($replypanel);
$tablecells .= wf_TableCell($replytext);
//.........这里部分代码省略.........
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:101,代码来源:api.ticketing.php
示例15: renderItemDuplicateList
/**
* Returns list of duplicate coords/name items for some existing map
*
* @param int $mapid
* @return string
*/
public function renderItemDuplicateList($mapid)
{
$mapid = vf($mapid, 3);
$result = '';
$messages = new UbillingMessageHelper();
$itemsCount = 0;
$filterArray = array();
if ($this->altCfg['ADCOMMENTS_ENABLED']) {
$adcomments = new ADcomments('CUSTMAPITEMS');
$adc = true;
} else {
$adc = false;
}
//counting unique geo coords
if (!empty($this->allItems)) {
foreach ($this->allItems as $ia => $eachItem) {
if ($eachItem['mapid'] == $mapid) {
if (isset($filterArray[$eachItem['geo']])) {
$filterArray[$eachItem['geo']]++;
} else {
$filterArray[$eachItem['geo']] = 1;
}
}
}
}
$result .= wf_Link('?module=custmaps&showitems=' . $mapid, __('Back'), false, 'ubButton');
$result .= wf_delimiter();
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Type'));
$cells .= wf_TableCell(__('Geo location'));
$cells .= wf_TableCell(__('Name'));
$cells .= wf_TableCell(__('Location'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($this->allItems)) {
foreach ($this->allItems as $io => $each) {
$indicator = $adc ? $adcomments->getCommentsIndicator($each['id']) : '';
if ($each['mapid'] == $mapid) {
if (isset($filterArray[$each['geo']])) {
if ($filterArray[$each['geo']] > 1) {
$cells = wf_TableCell($each['id']);
$cells .= wf_TableCell($this->itemGetTypeName($each['type']));
$cells .= wf_TableCell($each['geo']);
$cells .= wf_TableCell($each['name']);
$cells .= wf_TableCell($each['location']);
$actLinks = '';
if (cfr('CUSTMAPEDIT')) {
$actLinks .= wf_JSAlertStyled('?module=custmaps&deleteitem=' . $each['id'], web_delete_icon(), $messages->getDeleteAlert()) . ' ';
}
$actLinks .= wf_JSAlertStyled('?module=custmaps&edititem=' . $each['id'], web_edit_icon(), $messages->getEditAlert()) . ' ';
$actLinks .= wf_Link('?module=custmaps&showmap=' . $each['mapid'] . '&locateitem=' . $each['geo'] . '&zoom=' . $this->ymapsCfg['FINDING_ZOOM'], wf_img('skins/icon_search_small.gif', __('Find on map')), false) . ' ';
$actLinks .= $indicator;
$cells .= wf_TableCell($actLinks);
$rows .= wf_TableRow($cells, 'row3');
$itemsCount++;
}
}
}
}
}
$result .= wf_TableBody($rows, '100%', '0', 'sortable');
$result .= __('Total') . ': ' . $itemsCount;
return $result;
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:71,代码来源:api.custmaps.php
示例16: zb_LicenseLister
function zb_LicenseLister()
{
$avarice = new Avarice();
$all = $avarice->getLicenseKeys();
$cells = wf_TableCell(__('Module'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($all)) {
foreach ($all as $io => $each) {
//construct edit form
$editinputs = wf_HiddenInput('editdbkey', $each['KEY']);
$editinputs .= wf_TextArea('editlicense', '', $each['LICENSE'], true, '50x10');
$editinputs .= wf_Submit(__('Save'));
$editform = wf_Form("", 'POST', $editinputs, 'glamour');
$editcontrol = wf_modal(web_edit_icon(), __('Edit'), $editform, '', '500', '300');
//construct deletion controls
$deletecontrol = wf_JSAlert('?module=licensekeys&licensedelete=' . $each['KEY'], web_delete_icon(), __('Removing this may lead to irreparable results'));
$cells = wf_TableCell($each['MODULE']);
$cells .= wf_TableCell($deletecontrol . ' ' . $editcontrol);
$rows .= wf_TableRow($cells, 'row3');
}
}
//constructing license creation form
$addinputs = wf_TextArea('createlicense', '', '', true, '50x10');
$addinputs .= wf_Submit(__('Add'));
$addform = wf_Form("", 'POST', $addinputs, 'glamour');
$addcontrol = wf_modal(wf_img('skins/icon_add.gif', __('Add')) . ' ' . __('Add'), __('Add'), $addform, 'ubButton', '500', '300');
$result = wf_TableBody($rows, '100%', 0, '');
$result .= $addcontrol;
show_window(__('Installed license keys'), $result);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:api.deploy.php
示例17: renderTasksList
/**
* Renders available tasks list with controls
*
* @param sring $login
*
* @return string
*/
public function renderTasksList($login = '')
{
$result = '';
$messages = new UbillingMessageHelper();
$tmpArr = array();
if (!empty($this->allTasks)) {
foreach ($this->allTasks as $io => $each) {
if (empty($login)) {
$tmpArr[$io] = $each;
} else {
if ($login == $each['login']) {
$tmpArr[$io] = $each;
}
}
}
}
if (!empty($tmpArr)) {
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Date'));
$cells .= wf_TableCell(__('User'));
$cells .= wf_TableCell(__('Task'));
$cells .= wf_TableCell(__('Parameter'));
$cells .= wf_TableCell(__('Notes'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
foreach ($tmpArr as $io => $each) {
$cells = wf_TableCell($each['id']);
$cells .= wf_TableCell($each['date']);
$cells .= wf_TableCell(wf_Link('?module=userprofile&username=' . $each['login'], web_profile_icon() . ' ' . $each['login'], false, ''));
$cells .= wf_TableCell($this->actionNames[$each['action']]);
$cells .= wf_TableCell($each['param']);
$cells .= wf_TableCell($each['note']);
$taskControls = wf_JSAlert(self::URL_ME . '&username=' . $each['login'] . '&deletetaskid=' . $each['id'], web_delete_icon(), $messages->getDeleteAlert());
$cells .= wf_TableCell($taskControls);
$rows .= wf_TableRow($cells, 'row3');
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
} else {
$result = $messages->getStyledMessage(__('Nothing found'), 'info');
}
return $result;
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:49,代码来源:api.dealwithit.php
示例18: web_TariffLister
function web_TariffLister()
{
$alltariffs = billing_getalltariffs();
$dbSchema = zb_CheckDbSchema();
global $ubillingConfig;
$alter = $ubillingConfig->getAlter();
$cells = wf_TableCell(__('Tariff name'));
$cells .= wf_TableCell(__('Tariff Fee'));
if ($dbSchema > 0) {
$cells .= wf_TableCell(__('Period'));
}
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
$result = wf_Link("?module=tariffs&action=new", __('Create new tariff'), true, 'ubButton');
if (!empty($alltariffs)) {
foreach ($alltariffs as $io => $eachtariff) {
$cells = wf_TableCell($eachtariff['name']);
$cells .= wf_TableCell($eachtariff['Fee']);
if ($dbSchema > 0) {
$cells .= wf_TableCell(__($eachtariff['period']));
}
$actions = wf_JSAlert("?module=tariffs&action=delete&tariffname=" . $eachtariff['name'], web_delete_icon(), __('Delete') . ' ' . $eachtariff['name'] . '? ' . __('Removing this may lead to irreparable results'));
$actions .= wf_JSAlert("?module=tariffs&action=edit&tariffname=" . $eachtariff['name'], web_edit_icon(), __('Edit') . ' ' . $eachtariff['name'] . '? ' . __('Are you serious'));
$actions .= wf_Link('?module=tariffspeeds&tariff=' . $eachtariff['name'], wf_img('skins/icon_speed.gif', __('Edit speed')), false, '');
$actions .= isset($alter['SIGNUP_PAYMENTS']) && !empty($alter['SIGNUP_PAYMENTS']) ? wf_Link('?module=signupprices&tariff=' . $eachtariff['name'], wf_img('skins/icons/register.png', __('Edit signup price')), false, '') : null;
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result .= wf_TableBody($rows, '100%', 0, 'sortable');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:32,代码来源:index.php
-
librespeed/speedtest: Self-hosted Speedtest for HTML5 and more. Easy setup, exam
阅读:1218|2022-08-30
-
avehtari/BDA_m_demos: Bayesian Data Analysis demos for Matlab/Octave
阅读:1132|2022-08-17
-
女人怀孕后,为了有一个健康聪明的宝宝,经历各种体检、筛查。其实这些体检和筛查中的
阅读:942|2022-11-06
-
medfreeman/markdown-it-toc-and-anchor: markdown-it plugin to add a toc and ancho
阅读:1337|2022-08-18
-
URL injection in Driva inSync 6.9.0 for MacOS, allows attackers to force a visit
阅读:1530|2022-07-29
-
sydney0zq/covid-19-detection: The implementation of A Weakly-supervised Framewor
阅读:485|2022-08-16
-
离中国最远的国家是阿根廷。从太平洋直线计算,即往东线走,北京到阿根廷的布宜诺斯艾
阅读:641|2022-11-06
-
最近想合成一个gif图片,很多网站提供的功能要vip,还是matlab简单些。 之前也有用到
阅读:671|2022-07-18
-
shem8/MaterialLogin: Login view with material design
阅读:725|2022-08-17
-
MariaDB v10.2 to v10.7 was discovered to contain a segmentation fault via the co
阅读:825|2022-07-08
|
请发表评论