Example #1
0
function generaLlistaMails($MISSATGES, $IDL)
{
    $RET = '<TABLE class="Dades">';
    foreach ($MISSATGES->getResults() as $M) {
        $RET .= '<TR><TD class="linia">&nbsp;&nbsp;&nbsp;' . fletxeta() . '&nbsp;&nbsp;&nbsp;' . link_to($M->getTitol(), 'gestio/gLlistes' . getPar($IDL, 'MV', $M->getIdmissatgesllistes())) . '</TD><TD class="linia">' . $M->getDate() . '</TD></TR>';
    }
    $RET .= "</TABLE>";
    return $RET;
}
function llistaCalendariH($mes = null, $year = null, $CALENDARI = NULL, $VARIAMES = NULL, $VARIAANY = NULL, $PAGINA, $IDA, $ACCIO)
{
    //Agafo un mes... marco els dies blanc i començo a escriure
    if ($mes == null) {
        $mes = date("m", time());
    }
    if ($year == NULL) {
        $year = date('Y', time());
    }
    $mesI = $mes;
    $any = $year;
    $mesF = date('m', mktime(0, 0, 0, $mes + 12, 1, $year));
    $mesF = $mesI + 6;
    //De moment només sumem 3 mesos
    if ($mesF > 12) {
        $mesF = $mesF - 12;
    }
    $RET = "<tr><td></td>";
    for ($i = 6; $i > 0; $i--) {
        $RET .= "<td>Dll</td><td>Dm</td><td>Dc</td><td>Dj</td><td>Dv</td><td>Ds</td><td>Dg</td>";
    }
    $RET .= "</tr>";
    for ($mes = $mesI; $mes < $mesF; $mes++) {
        $dies = cal_days_in_month(CAL_GREGORIAN, $mes, $any);
        //Mirem quants dies té el mes
        $diaSetmana = jddayofweek(cal_to_jd(CAL_GREGORIAN, $mes, 1, $any), 0);
        //Marquem quants blancs volem tenir
        if ($diaSetmana == 0) {
            $blancs = 6 - 1;
        } else {
            $blancs = $diaSetmana - 2;
        }
        if ($mes % 2) {
            $background = "beige";
        } else {
            $background = "white";
        }
        //Mirem el color del fons
        $RET .= "<tr><td>" . mesos($mes) . "</td>";
        for ($dia = 0; $dia < 40; $dia++) {
            //Generem el calendari
            $diaA = $dia - $blancs;
            if ($dia <= $blancs || $diaA > $dies) {
                //Si és blanc el marquem com a tal i si el dia ha passat el màxim de dies del mes no el marquem
                $RET .= "<td></td>";
            } else {
                $diaSetmana = jddayofweek(cal_to_jd(CAL_GREGORIAN, $mes, $diaA, $any), 0);
                if ($diaSetmana == 6 || $diaSetmana == 0) {
                    $background = "beige";
                } else {
                    $background = "white";
                }
                if (isset($CALENDARI[intval($any)][intval($mes)][intval($diaA)])) {
                    $background = "RED";
                }
                $RET .= '<td class="DIES" style="background-color:' . $background . '; text-align:center;">' . link_to($diaA, "gestio/gActivitats" . getPar($PAGINA, $IDA, 'C', $any, $mes, $diaA, $VARIAMES, $VARIAANY)) . ' ' . checkbox_tag('DIES[]', mktime(0, 0, 0, $mes, $dia, $any), false) . '</td>';
            }
        }
        $RET .= "</tr>";
        if ($mes == 12) {
            $any = $any + 1;
        }
    }
    return $RET;
}
function gestorPaginesUsuaris($USUARIS)
{
    if ($USUARIS->haveToPaginate()) {
        echo link_to(image_tag('tango/16x16/actions/go-previous.png'), "gestio/gUsuaris" . getPar($USUARIS->getPreviousPage()));
        echo " ";
        echo link_to(image_tag('tango/16x16/actions/go-next.png'), "gestio/gUsuaris" . getPar($USUARIS->getNextPage()));
    }
}
Example #4
0
function detail()
{
    global $s, $inp, $par, $tab, $arrTitle, $fFile, $dFile, $arrParameter, $menuAccess;
    $sql = "select * from dta_supplier where kodeSupplier='{$par['kodeSupplier']}'";
    $res = db($sql);
    $r = mysql_fetch_array($res);
    if (empty($r[kodeTipe])) {
        $r[kodeTipe] = $par[kodeTipe];
    }
    if ($r[statusSupplier] == "p") {
        $statusSupplier = "Prospect";
    } else {
        if ($r[statusSupplier] == "t") {
            $statusSupplier = "Active";
        } else {
            $statusSupplier = "Not Active";
        }
    }
    $dAddress = " style=\"display: none;\"";
    $dProduct = " style=\"display: none;\"";
    $dIdentity = " style=\"display: none;\"";
    $dContact = " style=\"display: none;\"";
    $dBanking = " style=\"display: none;\"";
    $dGeneral = " style=\"display: none;\"";
    if ($tab == 1) {
        $tAddress = "class=\"current\"";
        $dAddress = " style=\"display: block;\"";
    } else {
        if ($tab == 2) {
            $tProduct = "class=\"current\"";
            $dProduct = " style=\"display: block;\"";
        } else {
            if ($tab == 3) {
                $tIdentity = "class=\"current\"";
                $dIdentity = " style=\"display: block;\"";
            } else {
                if ($tab == 4) {
                    $tContact = "class=\"current\"";
                    $dContact = " style=\"display: block;\"";
                } else {
                    if ($tab == 5) {
                        $tBanking = "class=\"current\"";
                        $dBanking = " style=\"display: block;\"";
                    } else {
                        $tGeneral = "class=\"current\"";
                        $dGeneral = " style=\"display: block;\"";
                    }
                }
            }
        }
    }
    $text .= "<div class=\"pageheader\">\n\t<h1 class=\"pagetitle\">" . $arrTitle[$s] . "</h1>\n\t" . getBread(ucwords("detail data")) . "\n\t<ul class=\"hornav\">\n\t\t<li {$tGeneral}><a href=\"#general\">General</a></li>\n\t\t<li {$tAddress}><a href=\"#address\">Address</a></li>\n\t\t<li {$tProduct}><a href=\"#product\">Product</a></li>\n\t\t<li {$tIdentity}><a href=\"#identity\">Identity</a></li>\n\t\t<li {$tContact}><a href=\"#contact\">Contact</a></li>\n\t\t<li {$tBanking}><a href=\"#banking\">Banking</a></li>\n\t</div>\n\t<div id=\"contentwrapper\" class=\"contentwrapper\">\n\t\t<form id=\"form\" name=\"form\" method=\"post\" class=\"stdform\" action=\"?_submit=1" . getPar($par) . "\" onsubmit=\"return validation(document.form);\" enctype=\"multipart/form-data\">\n\t\t\t<div style=\"top:70px; right:35px; position:absolute\">\n\t\t\t\t<input type=\"button\" class=\"cancel radius2\" style=\"float:right;\" value=\"Back\" onclick=\"window.location='?" . getPar($par, "mode, kodeSupplier") . "';\"/>\n\t\t\t</div>";
    # TAB GENERAL
    $text .= "<div id=\"general\" class=\"subcontent\" {$dGeneral} >\t\t\t\t\t\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">No Akun</label>\n\t\t\t\t<span class=\"field\">{$r['nomorSupplier']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Nama Supplier</label>\n\t\t\t\t<span class=\"field\">{$r['namaSupplier']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Alias</label>\n\t\t\t\t<span class=\"field\">{$r['aliasSupplier']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Logo</label>\n\t\t\t\t<div class=\"field\">";
    $text .= empty($r[logoSupplier]) ? "" : "<img src=\"" . $fFile . "/" . $r[logoSupplier] . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\">\n\t\t\t\t\t<br clear=\"all\">";
    $text .= "</div>\n\t\t\t\t</p>\n\t\t\t\t<p>\n\t\t\t\t\t<label class=\"l-input-small\">Alamat</label>\n\t\t\t\t\t<span class=\"field\">" . nl2br($r[alamatSupplier]) . "&nbsp;</span>\n\t\t\t\t</p>\n\t\t\t\t<table style=\"width:100%\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td style=\"width:50%\">\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Propinsi</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">" . getField("select namaData from mst_data where kodeData='{$r['kodePropinsi']}'") . "&nbsp;</span>\n\t\t\t\t\t\t\t</p>\t\t\t\t\t\t\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Telepon</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['teleponSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Email</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['emailSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Status</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$statusSupplier}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td style=\"width:50%\">\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Kota</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">" . getField("select namaData from mst_data where kodeData='{$r['kodeKota']}'") . "&nbsp;</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Fax</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['faxSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<label class=\"l-input-small2\">Website</label>\n\t\t\t\t\t\t\t\t<span class=\"fieldA\">{$r['webSupplier']}&nbsp;</span>\n\t\t\t\t\t\t\t</p>\t\t\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t</div>";
    # TAB ADDRESS
    $text .= "<div id=\"address\" class=\"subcontent\" {$dAddress} >\n\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"stdtable stdtablequick\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th width=\"20\">No.</th>\n\t\t\t\t\t\t<th width=\"200\">Kategori</th>\t<th>Alamat</th>\n\t\t\t\t\t\t<th width=\"200\">Kota</th>\t<th width=\"150\">Telepon</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>";
    $sql = "select * from dta_supplier_address t1 join mst_data t2 on (t1.kodeKota=t2.kodeData) where t1.kodeSupplier='{$par['kodeSupplier']}' order by t1.kodeAddress";
    $res = db($sql);
    $no = 1;
    while ($r = mysql_fetch_array($res)) {
        $text .= "<tr>\n\t\t\t\t\t\t<td>{$no}.</td>\n\t\t\t\t\t\t<td>{$r['kategoriAddress']}</td>\n\t\t\t\t\t\t<td>{$r['alamatAddress']}</td>\n\t\t\t\t\t\t<td>{$r['namaData']}</td>\n\t\t\t\t\t\t<td>{$r['teleponAddress']}</td>\n\t\t\t\t\t</tr>";
        $no++;
    }
    if ($no == 1) {
        $text .= "<tr>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t</tr>";
    }
    $text .= "</tbody>\n\t\t</table>\n\t</div>";
    # TAB PRODUCT
    $text .= "<div id=\"product\" class=\"subcontent\" {$dProduct} >\n\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"stdtable stdtablequick\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<th width=\"20\">No.</th>\n\t\t\t\t<th>Product</th>\n\t\t\t\t<th width=\"125\">Harga</th>\n\t\t\t\t<th width=\"50\">File</th>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>";
    $sql = "select * from dta_supplier_produk t1 join dta_produk_kategori t2 on (t1.kodeProduk=t2.kodeProduk and t1.kodeKategori=t2.kodeKategori) where t1.kodeSupplier='{$par['kodeSupplier']}' order by t1.kodeProduk, t1.kodeKategori";
    $res = db($sql);
    $no = 1;
    while ($r = mysql_fetch_array($res)) {
        $text .= "<tr>\n\t\t\t\t<td>{$no}.</td>\n\t\t\t\t<td>{$r['tipeKategori']} -- {$r['namaKategori']}</td>\n\t\t\t\t<td align=\"right\">" . getAngka($r[hargaProduk]) . "</td>\n\t\t\t\t<td align=\"center\">";
        if (!empty($r[fileProduk])) {
            $text .= "<a href=\"download.php?d=supp&f=" . $r[kodeSupplier] . "." . $r[kodeProduk] . "." . $r[kodeKategori] . "\"><img src=\"" . getIcon($dFile . "/" . $r[fileProduk]) . "\" style=\"padding-right:5px; padding-bottom:5px;\"></a>";
        }
        $text .= "</td>\n\t\t\t\t</tr>";
        $no++;
    }
    if ($no == 1) {
        $text .= "<tr>\n\t\t\t\t<td>&nbsp;</td>\t\t\t\t\t\t\t\t\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>";
    }
    $text .= "</tbody>\n\t</table>\n</div>";
    # TAB IDENTITY
    $sql = "select * from dta_supplier_identity where kodeSupplier='{$par['kodeSupplier']}'";
    $res = db($sql);
    $r = mysql_fetch_array($res);
    $text .= "<div id=\"identity\" class=\"subcontent\" {$dIdentity} >\n<table width=\"100%\">\n\t<tr>\n\t\t<td width=\"50%\" nowrap=\"nowrap\" style=\"vertical-align:top\">\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">SIUP</label>\n\t\t\t\t<span class=\"field\">{$r['siupIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">TDP</label>\n\t\t\t\t<span class=\"field\">{$r['tdpIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">ID</label>\n\t\t\t\t<span class=\"field\">{$r['idIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">NPWP</label>\n\t\t\t\t<span class=\"field\">{$r['npwpIdentity']}&nbsp;</span>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">Alamat</label>\n\t\t\t\t<span class=\"field\">" . nl2br($r[alamatIdentity]) . "&nbsp;</span>\n\t\t\t</p>\n\t\t</td>\n\t\t<td width=\"50%\" nowrap=\"nowrap\" style=\"vertical-align:top\">\n\t\t\t<p>\n\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t<div class=\"field\">";
    $text .= empty($r[siupIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=siup.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[siupIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t</p>\n\t\t\t\t<p>\n\t\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t\t<div class=\"field\">";
    $text .= empty($r[tdpIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=tdp.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[tdpIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t\t\t<div class=\"field\">";
    $text .= empty($r[idIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=id.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[idIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<label class=\"l-input-small\">File</label>\n\t\t\t\t\t\t\t<div class=\"field\">";
    $text .= empty($r[npwpIdentity_file]) ? "" : "<a href=\"download.php?d=sup&f=id.{$r['kodeSupplier']}\"><img src=\"" . getIcon($dFile . "/" . $r[npwpIdentity_file]) . "\" align=\"left\" style=\"padding-right:5px; padding-bottom:5px; max-width:50px; max-height:50px;\"></a>";
    $text .= "</div>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</div>";
    # TAB CONTACT
    $text .= "<div id=\"contact\" class=\"subcontent\" {$dContact} >\n\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"stdtable stdtablequick\">\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th width=\"20\">No.</th>\n\t\t\t\t\t\t<th style=\"min-width:175px;\">Posisi</th>\n\t\t\t\t\t\t<th style=\"min-width:175px;\">Nama</th>\n\t\t\t\t\t\t<th width=\"150\">Email</th>\n\t\t\t\t\t\t<th width=\"100\">HP</th>\n\t\t\t\t\t\t<th width=\"100\">Tlp Kantor</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>";
    $sql = "select * from dta_supplier_contact where kodeSupplier='{$par['kodeSupplier']}' order by kodeContact";
    $res = db($sql);
    $no = 1;
    while ($r = mysql_fetch_array($res)) {
        $text .= "<tr>\n\t\t\t\t\t\t<td>{$no}.</td>\n\t\t\t\t\t\t<td>{$r['jabatanContact']}</td>\n\t\t\t\t\t\t<td>{$r['namaContact']}</td>\n\t\t\t\t\t\t<td>{$r['emailContact']}</td>\n\t\t\t\t\t\t<td>{$r['teleponContact']}</td>\n\t\t\t\t\t\t<td>{$r['kantorContact']}</td>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>";
        $no++;
    }
    if ($no == 1) {
        $text .= "<tr>\n\t\t\t\t<td>&nbsp;</td>\t\t\t\t\t\t\t\t\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t<td>&nbsp;</td>\t\t\t\t\t\t\t\t\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>";
    }
    $text .= "</tbody>\n\t</table>\n</div>";
    # TAB BANKING
    $text .= "<div id=\"banking\" class=\"subcontent\" {$dBanking} >\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"stdtable stdtablequick\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th width=\"20\">No.</th>\n\t\t\t<th>Nama Bank</th>\n\t\t\t<th width=\"150\">No Akun</th>\t\t\t\t\t\t\t\n\t\t\t<th>Nama Akun</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>";
    $sql = "select * from dta_supplier_bank t1 join mst_data t2 on (t1.kodeBank=t2.kodeData) where t1.kodeSupplier='{$par['kodeSupplier']}' order by t1.kodeBank";
    $res = db($sql);
    $no = 1;
    while ($r = mysql_fetch_array($res)) {
        $text .= "<tr>\n\t\t\t<td>{$no}.</td>\n\t\t\t<td>{$r['namaBank']}</td>\n\t\t\t<td>{$r['rekeningBank']}</td>\n\t\t\t<td>{$r['pemilikBank']}</td>\n\t\t</tr>";
        $no++;
    }
    if ($no == 1) {
        $text .= "<tr>\n\t\t<td>&nbsp;</td>\n\t\t<td>&nbsp;</td>\n\t\t<td>&nbsp;</td>\n\t\t<td>&nbsp;</td>\n\t</tr>";
    }
    $text .= "</tbody>\n</table>\n</div>\n</form>";
    return $text;
}
Example #5
0
function mostraPaginacio($PAGER_USUARIS, $CERCA)
{
    $RET = "";
    if ($PAGER_USUARIS->haveToPaginate()) {
        $RET = link_to('&laquo;', 'gestio/gUsuaris' . getPar($CERCA, $PAGER_USUARIS->getFirstPage()));
        $RET .= link_to('&lt;', 'gestio/gUsuaris' . getPar($CERCA, $PAGER_USUARIS->getPreviousPage()));
        $links = $PAGER_USUARIS->getLinks();
        foreach ($links as $page) {
            $RET .= $page == $PAGER_USUARIS->getPage() ? $page : link_to($page, 'gestio/gUsuaris' . getPar($CERCA, $page));
            if ($page != $PAGER_USUARIS->getCurrentMaxLink()) {
            }
        }
        $RET .= link_to('&gt;', 'gestio/gUsuaris' . getPar($CERCA, $PAGER_USUARIS->getNextPage()));
        $RET .= link_to('&raquo;', 'gestio/gUsuaris' . getPar($CERCA, $PAGER_USUARIS->getLastPage()));
    }
    return $RET;
}
$users .= '</tr>';
$users .= '<tr ><td>Непарний</td>';
if ($f6[1]['par'] == 1 and $f6[1]['name'] != '') {
    $users .= '<td><a href="?c=showTimeTable&f=create_comm&p=' . $_GET['p'] . '&count=6&par=1&day=friday" rel="#overlay" /><img src="public/img/w18h181338911463pencil.png" height="17px" width="17px" align="right" /></a><b>' . $f6[1]['name'] . '</b> ( ' . $f6[1]['surname'] . ' ' . $f5[1]['f_name'] . '. ' . $f6[1]['l_name'] . '.) ауд: ' . $f6[1]['classroom'] . '   <span class="add">' . getNotPar($sf6);
    '</span></td>';
} else {
    $users .= '<td><a href="?c=showTimeTable&f=create_comm&p=' . $_GET['p'] . '&count=6&par=1&day=friday" rel="#overlay" /><img src="public/img/w18h181338911463pencil.png" height="17px" width="17px" align="right" /></a><span class="add">' . getNotPar($sf6);
    '</span></td>';
}
$users .= '</tr>';
$users .= '<tr><td  rowspan="3"><center>7 </br>17:25</center></td></tr>';
$users .= '<tr  class="active"><td>Парний </td>';
if ($f7[0]['par'] == 0 and $f7[0]['name'] != '') {
    $users .= '<td><a href="?c=showTimeTable&f=create_comm&p=' . $_GET['p'] . '&count=7&par=0&day=friday" rel="#overlay" /><img src="public/img/w18h181338911463pencil.png" height="17px" width="17px" align="right" /></a><b>' . $f7[0]['name'] . '</b> ( ' . $f7[0]['surname'] . ' ' . $f6[0]['f_name'] . '. ' . $f7[0]['l_name'] . '.) ауд: ' . $f7[0]['classroom'] . '   <span class="add">' . getPar($sf7) . '</span></td>';
} else {
    $users .= '<td><a href="?c=showTimeTable&f=create_comm&p=' . $_GET['p'] . '&count=7&par=0&day=friday" rel="#overlay" /><img src="public/img/w18h181338911463pencil.png" height="17px" width="17px" align="right" /></a><span class="add">' . getPar($sf7);
    '</span></td>';
}
$users .= '</tr>';
$users .= '<tr ><td>Непарний</td>';
if ($f7[1]['par'] == 1 and $f7[1]['name'] != '') {
    $users .= '<td><a href="?c=showTimeTable&f=create_comm&p=' . $_GET['p'] . '&count=7&par=1&day=friday" rel="#overlay" /><img src="public/img/w18h181338911463pencil.png" height="17px" width="17px" align="right" /></a><b>' . $f7[1]['name'] . '</b> ( ' . $f7[1]['surname'] . ' ' . $f7[1]['f_name'] . '. ' . $f7[1]['l_name'] . '.) ауд: ' . $f7[1]['classroom'] . '   <span class="add">' . getNotPar($sf7);
    '</span></td>';
} else {
    $users .= '<td><a href="?c=showTimeTable&f=create_comm&p=' . $_GET['p'] . '&count=7&par=1&day=friday" rel="#overlay" /><img src="public/img/w18h181338911463pencil.png" height="17px" width="17px" align="right" /></a><span class="add">' . getNotPar($sf7);
    '</span></td>';
}
$users .= '</tr>';
$users .= '</tr>';
$users .= '</table>';
$users .= '</div>';