Exemplo n.º 1
0
    </a>
  </td>
  <td>
    <?php 
echo $item['build_order'];
?>
  </td>
  <td>
    <?php 
if (empty($item['category_id'])) {
    ?>
      MIXED
    <?php 
} else {
    $category_name = htmlspecialchars($GLOBALS['categories'][$item['category_id']]['name']);
    echo StringChopTooltip($category_name, 25);
}
?>
  </td>
  <td style="text-align: right;" class="last">
    <a href="index.php?r=tlxPageTemplateLoad&page_id=<?php 
echo urlencode($item['page_id']);
?>
" class="function">
    <img src="images/html-small.png" width="12" height="12" alt="Edit Template" title="Edit Template"></a>
    <a href="index.php?r=tlxShPageEdit&page_id=<?php 
echo urlencode($item['page_id']);
?>
" class="window function {title: 'Edit Ranking Page', height: 375}">
    <img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
    <a href="" onclick="return deleteSelected('<?php 
Exemplo n.º 2
0
?>
" type="checkbox">
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['value'], 35);
?>
  </td>
  <td>
    <?php 
echo $WLIST_TYPES[$item['type']];
?>
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['reason'], 25);
?>
  </td>
  <td style="text-align: center;">
    <img src="images/<?php 
echo $item['allow_redirect'] ? 'check' : 'x';
?>
.png">
  </td>
  <td style="text-align: center;">
    <img src="images/<?php 
echo $item['allow_norecip'] ? 'check' : 'x';
?>
.png">
  </td>
  <td style="text-align: center;">
Exemplo n.º 3
0
echo $item['recip_required'] ? 'Yes' : 'No';
?>

    <span style="left: 225px; position: absolute;"><b>Recip Required:</b>&nbsp;
    <?php 
echo $item['recip_required'] ? 'Yes' : 'No';
?>
</span>
    </div>

    <?php 
foreach ($GLOBALS['_user_fields_'] as $field) {
    if (!IsEmptyString($item[$field['name']])) {
        ?>
    <div style="margin-top: 4px;"><b><?php 
        echo StringChopTooltip(htmlspecialchars($field['label']), 25);
        ?>
:</b>&nbsp; <?php 
        echo $item[$field['name']];
        ?>
</div>
    <?php 
    }
}
?>
    </div>
  </td>
  <td style="text-align: right;" class="last" valign="top">
    <a href="index.php?r=lxShEditUser&username=<?php 
echo urlencode($item['username']);
?>
Exemplo n.º 4
0
  </td>
  <td style="text-align: center;">
    <img src="images/<?php 
echo $item['hidden'] ? 'check' : 'x';
?>
.png">
  </td>
  <td>
    <?php 
$accounts = $DB->Count('SELECT COUNT(*) FROM `tlx_accounts` WHERE `category_id`=?', array($item['category_id']));
echo number_format($accounts, 0, $C['dec_point'], $C['thousands_sep']);
?>
  </td>
  <td>
    <?php 
echo StringChopTooltip($item[$_REQUEST['order']], 20);
?>
  </td>
  <td style="text-align: right;" class="last">
    <a href="index.php?r=tlxShAccountSearch&category_id=<?php 
echo urlencode($item['category_id']);
?>
" class="function">
    <img src="images/go.png" alt="View Galleries" title="View Galleries"></a>
    <a href="index.php?r=tlxShCategoryEdit&category_id=<?php 
echo urlencode($item['category_id']);
?>
" class="window function {title: 'Edit Category'}">
    <img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
    <a href="" onclick="return deleteSelected('<?php 
echo $item['category_id'];
Exemplo n.º 5
0
">
  <td>
    <input class="checkbox autocb" name="email_id[]" value="<?php 
echo $item['email_id'];
?>
" type="checkbox">
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['identifier'], 50);
?>
  </td>
  <td>
    <?php 
IniParse(html_entity_decode($item['plain']), FALSE, $item['message']);
echo StringChopTooltip($item['message']['subject'], 90);
?>
  </td>
  <td style="text-align: right;" class="last">
    <a href="index.php?r=lxShEditRejection&email_id=<?php 
echo urlencode($item['email_id']);
?>
" class="window function {title: 'Edit Rejection E-mail'}">
    <img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
    <a href="" onclick="return deleteSelected('<?php 
echo $item['email_id'];
?>
')" class="function">
    <img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
  </td>
</tr>
Exemplo n.º 6
0
<tr id="<?php 
echo $item['news_id'];
?>
">
  <td valign="top">
    <input type="checkbox" class="checkbox autocb" name="news_id[]" value="<?php 
echo $item['news_id'];
?>
">
  </td>
  <td valign="top">
    <b><?php 
echo StringChopTooltip($item['headline'], 100);
?>
</b><br />
    <div style="margin-left: 20px;"><?php 
echo nl2br(StringChop($item['body'], 500));
?>
</div>
  </td>
  <td valign="top">
    <?php 
echo date(DF_SHORT, strtotime($item['date_added']));
?>
  </td>
  <td style="text-align: right;" class="last" valign="top">
    <a href="index.php?r=lxShEditNews&news_id=<?php 
echo urlencode($item['news_id']);
?>
" class="window function {title: 'Edit News Item'}">
    <img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
Exemplo n.º 7
0
?>
</span>
    </div>
    
    <div style="margin-top: 4px; position: relative;">
    <b>Name:</b>&nbsp;
    <?php 
echo $item['name'] ? $item['name'] : '-';
?>

    <span style="left: 225px; position: absolute;"><b>E-mail:</b>&nbsp;
    <a href="mailto:<?php 
echo $item['email'];
?>
"><?php 
echo StringChopTooltip($item['email'], 35);
?>
</a></span>

    <span style="left: 475px; position: absolute;"><b>Submit IP:</b>&nbsp;
    <?php 
echo $item['submit_ip'];
?>
</span>
    </div>
    
    <div style="margin-top: 4px;">
    <b>Categories:</b><br />
    <div style="margin-left: 20px;">
    <?php 
$category_result = $DB->Query('SELECT * FROM lx_link_cats JOIN lx_categories USING (category_id) WHERE link_id=?', array($item['link_id']));
Exemplo n.º 8
0
echo $item['feed_id'];
?>
">
  </td>
  <td>
    <a href="<?php 
echo $item['feed_url'];
?>
" target="_blank"><?php 
echo StringChopTooltip($item['feed_url'], 75);
?>
</a>
  </td>
  <td>
    <?php 
echo $item['sponsor_id'] ? StringChopTooltip($GLOBALS['sponsors'][$item['sponsor_id']]['name'], 40) : '-';
?>
  </td>
  <td style="text-align: center">
    <?php 
echo $item['date_last_import'] ? date(DF_SHORT, strtotime($item['date_last_import'])) : '-';
?>
  </td>
  <td style="text-align: right;" class="last">
    <img src="images/expand.png" width="12" height="12" alt="Import" title="Import" class="click function" onClick="importRss('<?php 
echo $item['feed_id'];
?>
')">
    <a href="index.php?r=txShRssFeedEdit&feed_id=<?php 
echo urlencode($item['feed_id']);
?>
Exemplo n.º 9
0
?>
">
  <td>
    <input type="checkbox" class="checkbox autocb" name="icon_id[]" value="<?php 
echo $item['icon_id'];
?>
">
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['identifier'], 28);
?>
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['icon_html'], 130);
?>
  </td>
  <td style="text-align: right;" class="last">
    <a href="index.php?r=tlxShIconEdit&icon_id=<?php 
echo urlencode($item['icon_id']);
?>
" class="window function {title: 'Edit Icon'}">
    <img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
    <a href="" onclick="return deleteSelected('<?php 
echo $item['icon_id'];
?>
')" class="function">
    <img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
  </td>
</tr>
Exemplo n.º 10
0
<tr id="<?php 
echo $item['term_id'];
?>
">
  <td>
    <input type="checkbox" class="checkbox autocb" name="term_id[]" value="<?php 
echo $item['term_id'];
?>
">
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['term'], 120);
?>
  </td>
  <td>
    <?php 
echo date(DF_SHORT, strtotime($item['date_last_search']));
?>
  </td>
  <td>
    <?php 
echo number_format($item['searches'], 0, $C['dec_point'], $C['thousands_sep']);
?>
  </td>
  <td style="text-align: right;" class="last">
    <a href="" onclick="return deleteSelected('<?php 
echo $item['term_id'];
?>
')" class="function">
    <img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
Exemplo n.º 11
0
?>
">
  <td>
    <input class="checkbox autocb" name="field_id[]" value="<?php 
echo $item['field_id'];
?>
" type="checkbox">
  </td>
  <td>
    <?php 
echo $item['name'];
?>
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['label'], 70);
?>
  </td>
  <td>
    <?php 
echo $item['type'];
?>
  </td>
  <td style="text-align: center;">
    <?php 
if ($item['on_create']) {
    ?>
    <img src="images/<?php 
    echo $item['required_create'] ? 'check-required' : 'check';
    ?>
.png">
Exemplo n.º 12
0
    <input type="checkbox" class="checkbox autocb" name="domain_id[]" value="<?php 
echo $item['domain_id'];
?>
">
  </td>
  <td>
    <?php 
echo $item['domain'];
?>
  </td>
  <td>
    <a href="<?php 
echo $item['base_url'];
?>
" target="_blank"><?php 
echo StringChopTooltip($item['base_url'], 60);
?>
</a>
  </td>
  <td style="text-align: right;" class="last">
    <a href="index.php?r=txShDomainEdit&domain_id=<?php 
echo urlencode($item['domain_id']);
?>
" class="window function {title: 'Edit Domain'}">
    <img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
    <a href="" onclick="return deleteSelected('<?php 
echo $item['domain_id'];
?>
')" class="function">
    <img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
  </td>
    <?php 
echo date(DF_SHORT, strtotime($item['date_start']));
?>
  </td>
  <td class="centered" valign="top">
    <?php 
echo $item['date_end'] ? date(DF_SHORT, strtotime($item['date_end'])) : '-';
?>
  </td>
  <td class="centered" valign="top">
    <?php 
echo number_format($item['pages_built'], 0, $C['dec_point'], $C['thousands_sep']);
?>
    of
    <?php 
echo number_format($item['pages_total'], 0, $C['dec_point'], $C['thousands_sep']);
?>
  </td>
  <td class="last">
    <a href="<?php 
echo $item['current_page_url'];
?>
" target="_blank"><?php 
echo StringChopTooltip($item['current_page_url'], 60);
?>
</a><br />
    <?php 
echo nl2br($item['error_message']);
?>
  </td>
</tr>
Exemplo n.º 14
0
function txGalleryIPE()
{
    global $DB, $C;
    VerifyPrivileges(P_GALLERY_MODIFY, TRUE);
    // Format output
    $update = TRUE;
    $output = $_REQUEST['value'];
    switch ($_REQUEST['update']) {
        case 'date_scheduled':
        case 'date_deletion':
        case 'date_displayed':
            NullIfEmpty($_REQUEST['value']);
            $update = preg_match(RE_DATETIME, $_REQUEST['value']) || empty($_REQUEST['value']);
            $output = empty($_REQUEST['value']) ? '-' : date(DF_SHORT, strtotime($_REQUEST['value']));
            break;
        case 'status':
            $output = ucfirst($_REQUEST['value']);
            if ($_REQUEST['value'] == 'approved') {
                $_REQUEST['update'] = array('status', 'date_approved');
                $_REQUEST['value'] = array($_REQUEST['value'], MYSQL_NOW);
            }
            break;
        case 'type':
        case 'format':
            $output = ucfirst($_REQUEST['value']);
            break;
        case 'weight':
        case 'clicks':
        case 'thumbnails':
            $update = is_numeric($_REQUEST['value']);
            $output = number_format($_REQUEST['value'], 0, $C['dec_point'], $C['thousands_sep']);
            break;
        case 'description':
        case 'keywords':
        case 'tags':
            $output = StringChopTooltip(htmlspecialchars($_REQUEST['value']), 90);
            break;
        case 'gallery_url':
            $output = StringChopTooltip(htmlspecialchars($_REQUEST['value']), 100, true);
            break;
        case 'nickname':
        case 'email':
            $output = StringChopTooltip(htmlspecialchars($_REQUEST['value']), 40);
            break;
        case 'sponsor_id':
            NullIfEmpty($_REQUEST['value']);
            if ($_REQUEST['value'] == null) {
                $output = '';
            } else {
                $output = $DB->Count('SELECT `name` FROM `tx_sponsors` WHERE `sponsor_id`=?', array($_REQUEST['value']));
            }
            break;
        case 'categories':
            $_REQUEST['value'] = CategoryTagsFromIds(explode(',', $_REQUEST['value']));
            $categories =& CategoriesFromTags($_REQUEST['value']);
            $names = array();
            foreach ($categories as $category) {
                $names[] = $category['name'];
            }
            $output = StringChopTooltip(htmlspecialchars(join(', ', $names)), 90);
            break;
        case 'icons':
            if (isset($_REQUEST['multi'])) {
                $result = GetWhichGalleries();
                while ($gallery = $DB->NextRow($result)) {
                    $DB->Update('DELETE FROM `tx_gallery_icons` WHERE `gallery_id`=?', array($gallery['gallery_id']));
                    foreach (explode(',', $_REQUEST['value']) as $icon_id) {
                        $icon_id = trim($icon_id);
                        if (is_numeric($icon_id)) {
                            $DB->Update('INSERT INTO `tx_gallery_icons` VALUES (?,?)', array($gallery['gallery_id'], $icon_id));
                        }
                    }
                }
                $DB->Free($result);
            } else {
                $DB->Update('DELETE FROM `tx_gallery_icons` WHERE `gallery_id`=?', array($_REQUEST['gallery_id']));
                foreach (explode(',', $_REQUEST['value']) as $icon_id) {
                    $icon_id = trim($icon_id);
                    if (is_numeric($icon_id)) {
                        $DB->Update('INSERT INTO `tx_gallery_icons` VALUES (?,?)', array($_REQUEST['gallery_id'], $icon_id));
                    }
                }
            }
            echo '<img src="images/icons.png" alt="Icons" title="Icons" class="click-image function">';
            return;
            break;
    }
    if ($update) {
        $update = new UpdateBuilder('tx_galleries');
        if (is_array($_REQUEST['update'])) {
            foreach ($_REQUEST['update'] as $index => $field) {
                $update->AddSet($_REQUEST['update'][$index], $_REQUEST['value'][$index]);
            }
        } else {
            $update->AddSet($_REQUEST['update'], $_REQUEST['value']);
        }
        if (isset($_REQUEST['multi'])) {
            $update = GetWhichGalleries($update);
        } else {
            $update->AddWhere('gallery_id', ST_MATCHES, $_REQUEST['gallery_id']);
        }
        $DB->Update($update->Generate(), $update->binds);
    }
    echo $update ? $output : JSON_FAILURE;
}
Exemplo n.º 15
0
echo $item['sponsor_id'];
?>
">
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['name'], 40);
?>
  </td>
  <td>
    <a href="<?php 
echo $item['url'];
?>
" target="_blank">
    <?php 
echo StringChopTooltip($item['url'], 70);
?>
    </a>
  </td>
  <td>
    <?php 
$galleries = $DB->Count('SELECT COUNT(*) FROM `tx_galleries` WHERE `sponsor_id`=?', array($item['sponsor_id']));
echo number_format($galleries, 0, $C['dec_point'], $C['thousands_sep']);
?>
  </td>
  <td style="text-align: right;" class="last">
    <a href="index.php?r=txShGallerySearch&sponsor_id=<?php 
echo urlencode($item['sponsor_id']);
?>
" class="function">
    <img src="images/go.png" alt="View Galleries" title="View Galleries"></a>
if ($item['action'] != 'Deleted' && $item['action'] != 'Blacklisted') {
    ?>
    <input type="checkbox" class="checkbox autocb" name="username[]" value="<?php 
    echo $item['username'];
    ?>
">
    <?php 
}
?>
  </td>
  <td valign="top">
    <a href="<?php 
echo $item['site_url'];
?>
" target="_blank"><?php 
echo StringChopTooltip($item['site_url'], 90, TRUE);
?>
</a><br />
    <?php 
echo $item['message'];
?>
  </td>
  <td valign="top" class="r-<?php 
echo strtolower($item['action']);
?>
">
    <?php 
echo $item['action'];
?>
  </td>
  <td valign="top">
echo $item['config_id'];
?>
">
  <td>
    <input type="checkbox" class="checkbox autocb" name="config_id[]" value="<?php 
echo $item['config_id'];
?>
">
  </td>
  <td>
    [<?php 
echo $item['config_id'];
?>
]    
    <?php 
echo StringChopTooltip($item['identifier'], 60);
?>
  </td>
  <td id="status_<?php 
echo $item['config_id'];
?>
">
    <?php 
echo $item['current_status'];
?>
  </td>
  <td id="run_<?php 
echo $item['config_id'];
?>
">
    <?php 
if ($item['action'] != 'Deleted' && $item['action'] != 'Blacklisted') {
    ?>
    <input type="checkbox" class="checkbox autocb" name="gallery_id[]" value="<?php 
    echo $item['gallery_id'];
    ?>
">
    <?php 
}
?>
  </td>
  <td valign="top">
    <a href="<?php 
echo $item['gallery_url'];
?>
" target="_blank"><?php 
echo StringChopTooltip($item['gallery_url'], 90, TRUE);
?>
</a><br />
    <?php 
echo $item['message'];
?>
  </td>
  <td valign="top" class="r-<?php 
echo strtolower($item['action']);
?>
">
    <?php 
echo $item['action'];
?>
  </td>
  <td valign="top">
Exemplo n.º 19
0
echo number_format($item['clicks_total'], 0, $C['dec_point'], $C['thousands_sep']);
?>
    </div>
    
    <div class="fieldgroup">
      <label class="lesspad">Rating:</label>  <?php 
echo $item['ratings'] ? sprintf('%0.2f', $item['ratings_total'] / $item['ratings']) : '-';
?>
    </div>
    
    <?php 
if ($item['admin_comments']) {
    ?>
    <div class="fieldgroup">
      <label class="lesspad">Comments:</label>  <?php 
    echo StringChopTooltip($item['admin_comments'], 90);
    ?>
    </div>
    <?php 
}
?>


    <?php 
if ($item['edited']) {
    $edited = unserialize(base64_decode($item['edit_data']));
    unset($edited['banner_data']);
    unset($edited['banner_url_local']);
    ArrayHSC($edited);
    ?>
    <div style="border: 1px solid #ffe7cb; background-color: #FFFFC8; padding: 3px; margin-left: 20px; margin-top: 8px;" class="edited_span">
Exemplo n.º 20
0
<tr>
  <td class="last">
    <?php 
$path = unserialize(html_entity_decode($item['path_parts']));
// Generate category path
$parts = array();
foreach ($path as $part) {
    $parts[] = htmlspecialchars($part['name'], ENT_QUOTES);
}
$item['full_path'] = join(' / ', $parts);
?>
    <span class="category-expander" onclick="expandCategoryDeep('<?php 
echo $item['category_id'];
?>
')"><?php 
echo StringChopTooltip($item['full_path'], 100, true, ' ... ');
?>
</span>
    </span>
  </td>
</tr>
Exemplo n.º 21
0
?>
">
  <td>
    <input class="checkbox autocb" name="recip_id[]" value="<?php 
echo $item['recip_id'];
?>
" type="checkbox">
  </td>
  <td>
    <?php 
echo $item['identifier'];
?>
  </td>
  <td>
    <?php 
echo StringChopTooltip($item['code'], 110);
?>
  </td>
  <td style="text-align: right;" class="last">
    <a href="index.php?r=txShReciprocalEdit&recip_id=<?php 
echo urlencode($item['recip_id']);
?>
" class="window function {title: 'Edit Reciprocal Link'}">
    <img src="images/edit.png" width="12" height="12" alt="Edit" title="Edit"></a>
    <a href="" onclick="return deleteSelected('<?php 
echo $item['recip_id'];
?>
')" class="function">
    <img src="images/trash.png" width="12" height="12" alt="Delete" title="Delete"></a>
  </td>
</tr>