Menu

[r15]: / services / listservices.php  Maximize  Restore  History

Download this file

73 lines (58 with data), 2.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
#Application name: PhpCollab
#Status page: 1
#Path by root: ../services/listservices.php
$checkSession = "true";
include_once('../includes/library.php');
if ($profilSession != "0") {
headerFunction('../general/permissiondenied.php?'.session_name().'='.session_id());
exit;
}
$setTitle .= " : List Services";
include('../themes/'.THEME.'/header.php');
$blockPage = new block();
$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../administration/admin.php?",$strings["administration"],in));
$blockPage->itemBreadcrumbs($strings["service_management"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
include('../includes/messages.php');
$blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "servList";
$block1->openForm("../services/listservices.php?".session_name()."=".session_id()."#".$block1->form."Anchor");
$block1->heading($strings["service_management"]);
$block1->openPaletteIcon();
$block1->paletteIcon(0,"add",$strings["add"]);
$block1->paletteIcon(1,"remove",$strings["delete"]);
$block1->paletteIcon(2,"info",$strings["view"]);
$block1->paletteIcon(3,"edit",$strings["edit"]);
$block1->closePaletteIcon();
$tmpquery = "ORDER BY serv.name ASC";
$listServices = new request();
$listServices->openServices($tmpquery);
$comptListServices = count($listServices->serv_id);
if ($comptListServices!= "0") {
$block1->openResults();
$block1->labels($labels = array(0=>$strings["name"],1=>$strings["hourly_rate"]),"false",$sorting="false",$sortingOff = array(0=>"0",1=>"ASC"));
for ($i=0;$i<$comptListServices;$i++) {
$block1->openRow();
$block1->checkboxRow($listServices->serv_id[$i]);
$block1->cellRow($blockPage->buildLink("../services/viewservice.php?id=".$listServices->serv_id[$i],$listServices->serv_name[$i],in));
$block1->cellRow($listServices->serv_hourly_rate[$i]);
$block1->closeRow();
}
$block1->closeResults();
} else {
$block1->noresults();
}
$block1->closeFormResults();
$block1->openPaletteScript();
$block1->paletteScript(0,"add","../services/editservice.php?","true,true,true",$strings["add"]);
$block1->paletteScript(1,"remove","../services/deleteservices.php?","false,true,true",$strings["delete"]);
$block1->paletteScript(2,"info","../services/viewservice.php?","false,true,false",$strings["view"]);
$block1->paletteScript(3,"edit","../services/editservice.php?","false,true,false",$strings["edit"]);
$block1->closePaletteScript($comptListServices,$listServices->serv_id);
include('../themes/'.THEME.'/footer.php');
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.