Example #1
0
        $search = $_GET["search"];
        $ic .= "<a class='awesome light' style='float:left;'>'{$search}' Sorgusu için toplam {$howmany} kayıt bulundu.</a><a class='awesome light' style='float:left; margin-left:2px;' href='" . $_SERVER["SCRIPT_NAME"] . "'>x</a>";
    } else {
        $ic .= '<a class="button orange left" href="?c=' . $cid . '&new">Yeni Girdi Ekle</a>';
        $ic .= "<a class='button purple leftmargin left' href='?c={$cid}&settings' >&#8501; &#948; </a>";
    }
    $ic .= "\n<form method='GET' value=''>\n<input style='float:right;' type='submit' value='Search'>\n<input style='float:right;' type='text' name='search'>\n<input type='hidden' name='c' value='{$cid}'>\n</form>";
    // Column's Names
    $ic .= '
<table cellspacing="0">
<th><input type="checkbox"></th>';
    for ($i = 0; $i < $column; $i++) {
        $ic .= '<th class="' . $vartype[$i] . '"><p>' . $field[$i]['comment'] . '</p></th>';
    }
    $ic .= '<th></th></tr>';
    $ask = mysql_query("SELECT * FROM {$table} {$sq} ORDER BY `{$i}` DESC LIMIT" . $pag->sqlcode());
    while ($b = mysql_fetch_assoc($ask)) {
        $ic .= "<tr>";
        $ic .= "<td><input type='checkbox' name='" . $b[$ai] . "'></td>";
        for ($i = 0; $i < $column; $i++) {
            if ($vartype[$i] == 'date') {
                $ic .= "<td class='date'>" . htmlentities($b[$field[$i]['name']], ENT_QUOTES, "UTF-8") . '</td>';
            } elseif ($vartype[$i] == 'image') {
                $ic .= "<td class='image'> <a href='" . $b[$field[$i]['name']] . "' id='effect' alt='das'><img src='" . $b[$field[$i]['name']] . "' class='thumb' onerror='this.src=\"images/picture_error.png\"'></a></td>";
            } elseif ($vartype[$i] == 'text') {
                $ic .= "<td>" . short(100, strip_tags($b[$field[$i]['name']])) . '</td>';
            } elseif ($vartype[$i] == 'textarea') {
                $ic .= "<td>" . short(100, strip_tags($b[$field[$i]['name']])) . '</td>';
            } else {
                $ic .= "<td>" . htmlentities($b[$field[$i]], ENT_QUOTES, "UTF-8") . '</td>';
            }