| 425 |
|
|
| 426 |
$check = 0; |
$check = 0; |
| 427 |
if ( $params->get( 'date' ) ) { |
if ( $params->get( 'date' ) ) { |
| 428 |
$order[] = mosHTML::makeOption( 'date', _ORDER_DROPDOWN_DA ); |
$order[] = mosHTML::makeOption( 'date', T_('Date Asc') ); |
| 429 |
$order[] = mosHTML::makeOption( 'rdate', _ORDER_DROPDOWN_DD ); |
$order[] = mosHTML::makeOption( 'rdate', T_('Date Desc')); |
| 430 |
$check .= 1; |
$check .= 1; |
| 431 |
} |
} |
| 432 |
if ( $params->get( 'title' ) ) { |
if ( $params->get( 'title' ) ) { |
| 433 |
$order[] = mosHTML::makeOption( 'alpha', _ORDER_DROPDOWN_TA ); |
$order[] = mosHTML::makeOption( 'alpha', T_('Title Asc') ); |
| 434 |
$order[] = mosHTML::makeOption( 'ralpha', _ORDER_DROPDOWN_TD ); |
$order[] = mosHTML::makeOption( 'ralpha', T_('Title Desc') ); |
| 435 |
$check .= 1; |
$check .= 1; |
| 436 |
} |
} |
| 437 |
if ( $params->get( 'hits' ) ) { |
if ( $params->get( 'hits' ) ) { |
| 438 |
$order[] = mosHTML::makeOption( 'hits', _ORDER_DROPDOWN_HA ); |
$order[] = mosHTML::makeOption( 'hits', T_('Hits Asc') ); |
| 439 |
$order[] = mosHTML::makeOption( 'rhits', _ORDER_DROPDOWN_HD ); |
$order[] = mosHTML::makeOption( 'rhits', T_('Hits Desc') ); |
| 440 |
$check .= 1; |
$check .= 1; |
| 441 |
} |
} |
| 442 |
if ( $params->get( 'author' ) ) { |
if ( $params->get( 'author' ) ) { |
| 443 |
$order[] = mosHTML::makeOption( 'author', _ORDER_DROPDOWN_AUA ); |
$order[] = mosHTML::makeOption( 'author', T_('Author Asc') ); |
| 444 |
$order[] = mosHTML::makeOption( 'rauthor', _ORDER_DROPDOWN_AUD ); |
$order[] = mosHTML::makeOption( 'rauthor', T_('Author Desc') ); |
| 445 |
$check .= 1; |
$check .= 1; |
| 446 |
} |
} |
| 447 |
$order[] = mosHTML::makeOption( 'order', _ORDER_DROPDOWN_O ); |
$order[] = mosHTML::makeOption( 'order', T_('Ordering') ); |
| 448 |
$lists['order'] = mosHTML::selectList( $order, 'order', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $selected ); |
$lists['order'] = mosHTML::selectList( $order, 'order', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $selected ); |
| 449 |
if ( $check < 1 ) { |
if ( $check < 1 ) { |
| 450 |
$lists['order'] = ''; |
$lists['order'] = ''; |
| 635 |
|
|
| 636 |
if ( !$archives ) { |
if ( !$archives ) { |
| 637 |
// if no archives for category, hides search and outputs empty message |
// if no archives for category, hides search and outputs empty message |
| 638 |
echo '<br /><div align="center">'. _CATEGORY_ARCHIVE_EMPTY .'</div>'; |
echo '<br /><div align="center">'. T_('There are currently no Archived Entries for this Category') .'</div>'; |
| 639 |
} else { |
} else { |
| 640 |
BlogOutput( $rows, $params, $gid, $access, $pop, $menu, 1 ); |
BlogOutput( $rows, $params, $gid, $access, $pop, $menu, 1 ); |
| 641 |
} |
} |
| 715 |
|
|
| 716 |
if ( !$archives ) { |
if ( !$archives ) { |
| 717 |
// if no archives for category, hides search and outputs empty message |
// if no archives for category, hides search and outputs empty message |
| 718 |
echo '<br /><div align="center">'. _CATEGORY_ARCHIVE_EMPTY .'</div>'; |
echo '<br /><div align="center">'. T_('There are currently no Archived Entries for this Category') .'</div>'; |
| 719 |
} else { |
} else { |
| 720 |
BlogOutput( $rows, $params, $gid, $access, $pop, $menu, 1 ); |
BlogOutput( $rows, $params, $gid, $access, $pop, $menu, 1 ); |
| 721 |
} |
} |
| 811 |
|
|
| 812 |
if ( $archive ) { |
if ( $archive ) { |
| 813 |
// Search Success message |
// Search Success message |
| 814 |
$msg = sprintf( _ARCHIVE_SEARCH_SUCCESS, $params->get( 'month' ), $params->get( 'year' ) ); |
$msg = sprintf( T_('Here are the Archived entries for %s %s'), $params->get( 'month' ), $params->get( 'year' ) ); |
| 815 |
echo "<br /><br /><div align='center'>". $msg ."</div><br /><br />"; |
echo "<br /><br /><div align='center'>". $msg ."</div><br /><br />"; |
| 816 |
} |
} |
| 817 |
echo '<table class="blog' . $params->get( 'pageclass_sfx' ) . '" cellpadding="0" cellspacing="0">'; |
echo '<table class="blog' . $params->get( 'pageclass_sfx' ) . '" cellpadding="0" cellspacing="0">'; |
| 945 |
|
|
| 946 |
} else if ( $archive && !$total ) { |
} else if ( $archive && !$total ) { |
| 947 |
// Search Failure message for Archives |
// Search Failure message for Archives |
| 948 |
$msg = sprintf( _ARCHIVE_SEARCH_FAILURE, $params->get( 'month' ), $params->get( 'year' ) ); |
$msg = sprintf( T_('There are no Archived entries for %s %s'), $params->get( 'month' ), $params->get( 'year' ) ); |
| 949 |
echo '<br /><br /><div align="center">'. $msg .'</div><br />'; |
echo '<br /><br /><div align="center">'. $msg .'</div><br />'; |
| 950 |
} else { |
} else { |
| 951 |
// Generic blog empty display |
// Generic blog empty display |
| 952 |
echo _EMPTY_BLOG; |
echo T_('There are no items to display'); |
| 953 |
} |
} |
| 954 |
|
|
| 955 |
// Back Button |
// Back Button |
| 1238 |
$lists['imagelist'] = mosAdminMenus::GetSavedImages( $row, $pathL ); |
$lists['imagelist'] = mosAdminMenus::GetSavedImages( $row, $pathL ); |
| 1239 |
|
|
| 1240 |
// make the select list for the states |
// make the select list for the states |
| 1241 |
$states[] = mosHTML::makeOption( 0, _CMN_UNPUBLISHED ); |
$states[] = mosHTML::makeOption( 0, T_('Unpublished') ); |
| 1242 |
$states[] = mosHTML::makeOption( 1, _CMN_PUBLISHED ); |
$states[] = mosHTML::makeOption( 1, T_('Published') ); |
| 1243 |
$lists['state'] = mosHTML::selectList( $states, 'state', 'class="inputbox" size="1"', 'value', 'text', intval( $row->state ) ); |
$lists['state'] = mosHTML::selectList( $states, 'state', 'class="inputbox" size="1"', 'value', 'text', intval( $row->state ) ); |
| 1244 |
|
|
| 1245 |
// build the html select list for ordering |
// build the html select list for ordering |
| 1355 |
$users = $database->loadResultArray(); |
$users = $database->loadResultArray(); |
| 1356 |
foreach ($users as $user_id) { |
foreach ($users as $user_id) { |
| 1357 |
$msg = new mosMessage( $database ); |
$msg = new mosMessage( $database ); |
| 1358 |
$msg->send( $my->id, $user_id, "New Item", sprintf( _ON_NEW_CONTENT, $my->username, $row->title, $section, $category ) ); |
$msg->send( $my->id, $user_id, T_("New Item"), sprintf( T_('A new content item has been submitted by [ %s ] titled [ %s ] from section [ %s ] and category [ %s ]'), $my->username, $row->title, $section, $category ) ); |
| 1359 |
} |
} |
| 1360 |
} |
} |
| 1361 |
|
|
| 1362 |
$Itemid = mosGetParam( $_POST, 'Returnid', '0' ); |
$Itemid = mosGetParam( $_POST, 'Returnid', '0' ); |
| 1363 |
$msg = $isNew ? _THANK_SUB : _E_ITEM_SAVED; |
$msg = $isNew ? T_('Thanks for your submission; it will be reviewed before being posted to the site.') : T_('Item saved successfully.'); |
| 1364 |
mosRedirect( 'index.php', $msg ); |
mosRedirect( 'index.php', $msg ); |
| 1365 |
} |
} |
| 1366 |
|
|
| 1434 |
} |
} |
| 1435 |
|
|
| 1436 |
if ( !$email || !$youremail || ( is_email( $email ) == false ) || ( is_email( $youremail ) == false ) ) { |
if ( !$email || !$youremail || ( is_email( $email ) == false ) || ( is_email( $youremail ) == false ) ) { |
| 1437 |
echo "<script>alert (\""._EMAIL_ERR_NOINFO."\"); window.history.go(-1);</script>"; |
echo "<script>alert (\"".T_('You must enter valid e-mail addresses for both yourself and your recipient.')."\"); window.history.go(-1);</script>"; |
| 1438 |
exit(0); |
exit(0); |
| 1439 |
} |
} |
| 1440 |
|
|
| 1494 |
$database->setQuery( $query ); |
$database->setQuery( $query ); |
| 1495 |
$database->query() or die( $database->stderr() ); |
$database->query() or die( $database->stderr() ); |
| 1496 |
} else { |
} else { |
| 1497 |
mosRedirect ( $url, _ALREADY_VOTE ); |
mosRedirect ( $url, T_('You already voted for this poll today!') ); |
| 1498 |
} |
} |
| 1499 |
} |
} |
| 1500 |
mosRedirect ( $url, _THANKS ); |
mosRedirect ( $url, T_('Thanks for your vote!') ); |
| 1501 |
} |
} |
| 1502 |
} |
} |
| 1503 |
|
|