403Webshell
Server IP : 192.169.170.185  /  Your IP : 216.73.216.97
Web Server : Apache
System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64
User : akhilnew ( 1712764)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/akhilnew/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/public_html/publishbookchapter.php
<?php
require_once('header.php');
function chapters($subject){
	global $mysqli, $baseurl, $pagename;$html = '';
	$both = "%|$subject|%";$left = "%|$subject";$right = "$subject|%";$none = $subject;
	$stmt = $mysqli->prepare("SELECT isbn, bookname, volume, newlink FROM bookchapters WHERE (subject LIKE ? OR subject LIKE ? OR subject LIKE ? OR subject LIKE ?) ORDER BY bookname ASC") or die('An error occurred. Please try after some time.');
	$stmt->bind_param('ssss', $both, $left, $right, $none);
	$stmt->execute();
	$stmt->store_result();
	if($stmt->num_rows() > 0):
		$stmt->bind_result($isbn, $bookname, $volume, $newlink);
		while($stmt->fetch()):
			if($bookname):
				$html .= ($bookname) ? '<li><a href="'.$baseurl.$pagename.'/'.html_entity_decode($newlink).'">'.html_entity_decode($bookname).' (Volume - '.$volume.')'.($isbn ? ' <span class="red-text">(ISBN: '.$isbn.')</span>' : '').'</a></li>' : '';
			endif;
		endwhile;
	endif;
	$stmt->close();
	return $html;
}
$link = strip_tags($fn->remaspace($fn->escape($option1)));
if($link):
	$stmt = $mysqli->prepare("SELECT bookchapterid, subject, isbn, bookname, volume, chiefeditor, chiefeditoraffiliation, chiefeditorpicture, chiefeditorpicturealt, chiefeditorpicturetitle, coeditor, coeditoraffiliation, coeditorpicture, coeditorpicturealt, coeditorpicturetitle, scope, bookpicture, bookpicturealt, bookpicturetitle, guidelinestype, h2heading, description, topics, more_topics FROM bookchapters WHERE newlink = ? LIMIT 1") or die('An error occurred. Please try after some time.');
	$stmt->bind_param('s', $link);
	$stmt->execute();
	$stmt->store_result();
	$count_rows = $stmt->num_rows();
	$stmt->bind_result($book_chapter_id, $subject, $isbn, $bookname, $volume, $chiefeditor, $chiefeditoraffiliation, $chiefeditorpicture, $chiefeditorpicturealt, $chiefeditorpicturetitle, $coeditor, $coeditoraffiliation, $coeditorpicture, $coeditorpicturealt, $coeditorpicturetitle, $scope, $bookpicture, $bookpicturealt, $bookpicturetitle, $guidelinestype, $h2heading, $description, $topics, $more_topics);
	$stmt->fetch();
	$stmt->close();
	if ($count_rows == 1):
		$deadline = date('d') <= 25 ? date('t M Y') : date('t M Y', strtotime('last day of next month'));

		if ($bookpicture && file_exists($uploadpath . $bookpicture)):
			$bookpicture = '<img src="' . $imageurl . $bookpicture . '" alt="' . $bookpicturealt . '" title="' . $bookpicturetitle . '" style="float:none;width:200px;display:block;margin:auto" /><br clear="all">';
		else:
			$bookpicture = '';
		endif;

		$guidelinesfile = $guidelinestype === 'customized' ? 'CustomizedBookChapterGuidelines.pdf' : 'BookChapterGuidelines.pdf';
?>
		<div class="row head main">
			<div class="col s12 m12 l12 center-align">
				<style>
					/* Apply the color animation to the text */
					.color-animation {
						font-size: 24px;
						animation: colorChange 3s infinite; /* Animation for color change */
					}

					/* Define the color change animation */
					@keyframes colorChange {
						0% {
							color: #ff0000; /* Red at the start */
						}
						25% {
							color: #00ff00; /* Green at 25% */
						}
						50% {
							color: #0000ff; /* Blue at 50% */
						}
						75% {
							color: #ff00ff; /* Magenta at 75% */
						}
						100% {
							color: #ff0000; /* Red at 100% (to loop back) */
						}
					}
				</style>
			    
				<div style="display: inline-flex;align-items:center;">
					<b style="font-size: 24px;"><span class="color-animation">Submissions Open</span></b>
				</div>
				
				<br clear="all">
				<br clear="all">

				<h1>Publish a Book Chapter in &quot;<?php echo html_entity_decode($bookname) . " (Volume - {$volume})"; ?>&quot;</h1>
			</div>
		</div>

		<div style="background:url(<?php echo $imageurl; ?>blur-bg.jpg) center top no-repeat;background-size:cover;padding:20px;">
			<?php if ($h2heading && $description): ?>
				<h2 style="color:#fff;font-size:18px;text-align:center;"><?php echo $h2heading; ?></h2>
				<br clear="all">
				<div style="background:#f57c00;border-radius:4px;color:#fff;padding:20px;"><?php echo html_entity_decode($description); ?></div>
				<br clear="all">
			<?php endif; ?>

			<div class="white-text center-align" style="font-size:18px;">Indexed In</div>
			<div style="display:flex;column-gap:10px;row-gap:10px;flex-wrap:wrap;justify-content:center;margin:10px 0 30px;" class="zoomimage">
				<img src="<?php echo $imageurl; ?>crossref-logo.png" alt="Indexed in Crossref" title="Indexed in Crossref" style="padding:10px;height:35px;background:#fff;flex-shrink:0;">
				<img src="<?php echo $imageurl; ?>bowker-logo.png" alt="Indexed in Bowker" title="Indexed in Bowker" style="padding:10px;height:35px;background:#fff;flex-shrink:0;">
				<img src="<?php echo $imageurl; ?>r-access-logo.png" alt="Indexed in R-Access" title="Indexed in R-Access" style="padding:5px;height:35px;background:#fff;flex-shrink:0;">
				<img src="<?php echo $imageurl; ?>dimensions-logo.png" alt="Indexed in Dimensions" title="Indexed in Dimensions" style="padding:5px;height:35px;background:#fff;flex-shrink:0;">
				<img src="<?php echo $imageurl; ?>google-play-book-logo.png" alt="Indexed in Google Play Books" title="Indexed in Google Play Books" style="padding:5px;height:35px;background:#fff;flex-shrink:0;">
			</div>

			<style>
				@media (min-width: 992px) {
					.table-book-chapter td {
						width: 50%; border-left: 1px solid #fff; border-right: 1px solid #fff; padding: 0 20px; vertical-align: top;
					}
				}
				@media (max-width: 992px) {
					.table-book-chapter td {
						width: 100% !important; display: block; padding: 20px 0; vertical-align: top;
					}
				}
				.table-book-chapter tr {
					border: none;
				}
				.table-book-chapter td .section-heading {
					text-align: center;
				}
				.table-book-chapter td .section-heading span {
					background: #03796c; display: inline-block; padding: 6px 8px; border-radius: 4px;
				}
				.table-book-chapter td .book-chapter-scopes {
					display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
				}
				.table-book-chapter td .book-chapter-scopes li {
					border: 1px solid #fff; padding: 3px 6px; border-radius: 4px; text-align: center;
				}
			</style>
	
			<?php if ($option2 && $option2 === 'more-topics'): ?>
				<table class="white-text table-book-chapter">
					<tr>
						<td style="border-left: none;">
							<?php if ($more_topics): ?>
								<div class="section-heading">
									<span>Invited Topics</span>
								</div>
								<br clear="all">
								<div>
									<?php echo html_entity_decode($more_topics, ENT_QUOTES | ENT_HTML5, 'UTF-8'); ?>
								</div>
							<?php else: ?>
								<?php if ($scope): ?>
									<div class="section-heading">
										<span>Book Scopes</span>
									</div>
									<br clear="all">
									<ul class="fluid book-chapter-scopes">
										<?php
										foreach (explode(',', $scope) as $singleScope):
											echo '<li>' . trim(html_entity_decode($singleScope)) . '</li>';
										endforeach;
										?>
									</ul>
									<br clear="all"><br clear="all">
								<?php endif; ?>
							<?php endif; ?>
						</td>
						<td style="border-right: none;">
							<?php echo $bookpicture; ?>

							<div class="section-heading">
								<span>How To Submit</span>
							</div>
							<br clear="all">
							<p class="center-align">Email your book chapter at akinikbooks@gmail.com</p>
							<br clear="all">
							<p class="center-align">Customer helpline number +91-9911215212, +91-9999779515</p>
							<br clear="all">

							<div class="section-heading">
								<span>Deadline</span>
							</div>
							<br clear="all">
							<p class="center-align"><?php echo $deadline; ?></p>
							<br clear="all">

							<div class="section-heading">
								<span>Submit Chapter</span>
							</div>
							<br clear="all">
							<div class="center-align">
								<a href="<?php echo $baseurl; ?>bookdepartment/submit/chapter/<?php echo html_entity_decode($bookname); ?>|<?php echo $subject; ?>|<?php echo $link; ?>" style="color:#fff">To submit chapter: <span class="red white-text" style="padding:5px;border-radius:3px">Click here</span></a>

								<br clear="all"><br clear="all">OR<br clear="all"><br clear="all">

								<p>Send your chapter on <span class="red white-text" style="padding:5px;border-radius:3px">akinikbooks@gmail.com</span></p>
							</div>
						</td>
					</tr>
				</table>
			<?php else: ?>
				<table class="white-text table-book-chapter">
					<tr>
						<td style="border-left: none;">
							<?php echo $bookpicture; ?>
							<?php if ($topics): ?>
								<div class="section-heading">
									<span>Invited Topics</span>
								</div>
								<br clear="all">
								<div>
									<?php echo html_entity_decode($topics, ENT_QUOTES | ENT_HTML5, 'UTF-8'); ?>
								</div>
								<br clear="all">
								<br clear="all">

								<p>For more topics: <a href="<?php echo $baseurl . 'publishbookchapter/' . $link . '/more-topics'; ?>"><span class="yellow lighten-4 black-text" style="padding:4px 5px;border-radius:4px">Click here</span></a></p>
							<?php else: ?>
								<?php if ($scope): ?>
									<div class="section-heading">
										<span>Book Scopes</span>
									</div>
									<br clear="all">
									<ul class="fluid book-chapter-scopes">
										<?php
										foreach (explode(',', $scope) as $singleScope):
											echo '<li>' . trim(html_entity_decode($singleScope)) . '</li>';
										endforeach;
										?>
									</ul>
									<br clear="all"><br clear="all">
								<?php endif; ?>
							<?php endif; ?>
						</td>
						<td style="border-right: none;">
							<?php if ($isbn): ?>
								<div class="section-heading">
									<span>ISBN</span>
								</div>
								<br clear="all">
								<p class="center-align">ISBN: <span class="red white-text" style="padding:5px;border-radius:3px"><?php echo $isbn; ?></span></p>
								<br clear="all"><br clear="all">
							<?php endif; ?>

							<?php if ($chiefeditor): ?>
								<div class="center-align">
									<h3 style="font-size:14px;">Chief Editor</h3>
									<br clear="all">
									<?php if ($chiefeditorpicture && file_exists($uploadpath . $chiefeditorpicture)): ?>
										<img src="<?php echo $imageurl . $chiefeditorpicture; ?>" alt="<?php echo $chiefeditorpicturealt; ?>" title="<?php echo $chiefeditorpicturetitle; ?>" style="float:none;width:125px;display:block;margin:auto;border-radius:4px" />
										<br clear="all">
									<?php endif; ?>
									<?php echo html_entity_decode($chiefeditor) . '<br clear="all"><br clear="all">' . html_entity_decode(nl2br($chiefeditoraffiliation)) . '<br clear="all"><br clear="all">'; ?>
								</div>
							<?php endif; ?>

							<?php
							$stmt = $mysqli->prepare("SELECT name, affiliation, picture, picturealt, picturetitle FROM editors WHERE book_chapter_id = ? ORDER BY id ASC") or die('An error occurred. Please try after some time.');
							$stmt->bind_param('i', $book_chapter_id);
							$stmt->execute();
							$stmt->store_result();
							if ($stmt->num_rows() > 0):
								echo '<div class="center-align">';
								echo '<h3 style="font-size:14px;">Editor(s)</h3><br clear="all">';
								$stmt->bind_result($editorname, $editoraffiliation, $editorpicture, $editorpicturealt, $editorpicturetitle);
								while ($stmt->fetch()):
									if ($editorpicture && file_exists($uploadpath . $editorpicture)):
										echo '<img src="' . $imageurl . $editorpicture . '" alt="' . $editorpicturealt . '" title="' . $editorpicturetitle . '" style="float:none;width:125px;display:block;margin:auto;border-radius:4px" /><br clear="all">';
									endif;
									echo html_entity_decode($editorname) . ($editoraffiliation ? '<br clear="all"><br clear="all">' . html_entity_decode($editoraffiliation) : '') . '<br clear="all"><br clear="all">';
								endwhile;
								echo '</div>';
							endif;
							$stmt->close();

							$stmt = $mysqli->prepare("SELECT name, affiliation, picture, picturealt, picturetitle FROM coeditors WHERE bookchapterid = ? ORDER BY id DESC") or die('An error occurred. Please try after some time.');
							$stmt->bind_param('i', $book_chapter_id);
							$stmt->execute();
							$stmt->store_result();
							if ($stmt->num_rows() > 0 || $coeditor):
								echo '<div class="center-align">';
								echo '<h3 style="font-size:14px;">Co-Editor(s)</h3><br clear="all">';
								if ($coeditor):
									if ($coeditorpicture && file_exists($uploadpath . $coeditorpicture)):
										echo '<img src="' . $imageurl . $coeditorpicture . '" alt="' . ($coeditor) . '" style="float:none;width:125px;display:block;margin:auto;border-radius:4px" /><br clear="all">';
									endif;
									echo html_entity_decode($coeditor) . ($coeditoraffiliation ? '<br clear="all"><br clear="all">' . html_entity_decode($coeditoraffiliation) : '') . '<br clear="all"><br clear="all">';
								endif;
								$stmt->bind_result($coeditornameX, $coeditoraffiliationX, $coeditorpictureX, $coeditorpicturealtX, $coeditorpicturetitleX);
								while ($stmt->fetch()):
									if ($coeditorpictureX && file_exists($uploadpath . $coeditorpictureX)):
										echo '<img src="' . $imageurl . $coeditorpictureX . '" alt="' . $coeditorpicturealtX . '" title="' . $coeditorpicturetitleX . '" style="float:none;width:125px;display:block;margin:auto;border-radius:4px" /><br clear="all">';
									endif;
									echo html_entity_decode($coeditornameX) . ($coeditoraffiliationX ? '<br clear="all"><br clear="all">' . html_entity_decode($coeditoraffiliationX) : '') . '<br clear="all"><br clear="all">';
								endwhile;
								echo '</div>';
							endif;
							$stmt->close();
							?>

							<?php if ($topics && $scope): ?>
								<div class="section-heading">
									<span>Book Scopes</span>
								</div>
								<br clear="all">
								<ul class="fluid book-chapter-scopes">
									<?php
									foreach (explode(',', $scope) as $singleScope):
										echo '<li>' . trim(html_entity_decode($singleScope)) . '</li>';
									endforeach;
									?>
								</ul>
								<br clear="all"><br clear="all">
							<?php endif; ?>

							<div class="section-heading">
								<span>How To Submit</span>
							</div>
							<br clear="all">
							<p class="center-align">Email your book chapter at akinikbooks@gmail.com</p>
							<br clear="all">
							<p class="center-align">Customer helpline number +91-9911215212, +91-9999779515</p>
							<br clear="all">

							<div class="section-heading">
								<span>Deadline</span>
							</div>
							<br clear="all">
							<p class="center-align"><?php echo $deadline; ?></p>
							<br clear="all">
							
							<div class="section-heading">
								<span>Author Guidelines</span>
							</div>
							<br clear="all">
							<div style="text-align: center;">
								<a href="<?php echo $baseurl; ?>docs/BookChapterGuidelines.pdf" target="_blank" style="color:#fff">To download guidelines: <span class="yellow lighten-4 black-text" style="padding:4px 5px;border-radius:4px">Click here</span></a>
							</div>
							<br clear="all"><br clear="all">

							<div class="section-heading">
								<span>Submit Chapter</span>
							</div>
							<br clear="all">
							<div class="center-align">
								<a href="<?php echo $baseurl; ?>bookdepartment/submit/chapter/<?php echo html_entity_decode($bookname); ?>|<?php echo $subject; ?>|<?php echo $link; ?>" style="color:#fff">To submit chapter: <span class="red white-text" style="padding:5px;border-radius:3px">Click here</span></a>

								<br clear="all"><br clear="all">OR<br clear="all"><br clear="all">

								<p>Send your chapter on <span class="red white-text" style="padding:5px;border-radius:3px">akinikbooks@gmail.com</span></p>
							</div>
						</td>
					</tr>
				</table>
			<?php endif; ?>
		</div>

		<style>
			.faq-section { padding: 50px 0; }
			.faq-title { text-align: center; font-weight: 500; color: #333; font-size: 30px; margin-bottom: 40px; }
			.faq-collapsible { border: none !important; box-shadow: none !important; }
			.faq-collapsible li { margin-bottom: 12px; border-radius: 10px !important; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.08); background: #fff; }
			.faq-collapsible .collapsible-header { border: none !important; padding: 12px 10px; font-weight: 500; font-size: 15px; color: #333; background: #fff; display: flex; align-items: center; }
			.faq-collapsible .collapsible-header i.q-icon { color: #1a73e8; margin-right: 10px !important; }
			.faq-collapsible .collapsible-header span { flex: 1; }
			.faq-collapsible .collapsible-header i.chevron { transition: transform 0.3s ease; margin-right: 0; width: 24px; }
			.faq-collapsible li.active .collapsible-header { background: #1a73e8; color: #fff; }
			.faq-collapsible li.active .collapsible-header i { color: #fff; }
			.faq-collapsible li.active .collapsible-header i.chevron { transform: rotate(180deg); }
			.faq-collapsible .collapsible-body { padding: 15px; border: none !important; background: #fff; color: #555; line-height: 1.7; }
		</style>

		<section class="faq-section">
			<div class="container">
				<h4 class="faq-title">Frequently Asked Questions</h4>
				<div class="row">
					<div class="col s12 m10 offset-m1">
						<ul class="collapsible faq-collapsible">
							<li>
								<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>Who can submit?</span><i class="material-icons chevron">expand_more</i></div>
								<div class="collapsible-body">AkiNik Publications welcomes submissions from academic researchers, professionals, postgraduate and doctoral scholars, and other contributors across various disciplines. The platform supports authors at different stages of their careers, offering a professional outlet for quality academic work.</div>
							</li>
							<li>
								<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>Is there a fee?</span><i class="material-icons chevron">expand_more</i></div>
								<div class="collapsible-body">Yes, publication fees vary depending on the type of work and services selected. These fees cover editorial review, formatting, design, ISBN or DOI registration, and distribution. Full details are provided in the author guidelines or during submission.</div>
							</li>
							<li>
								<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>What is the peer review timeframe?</span><i class="material-icons chevron">expand_more</i></div>
								<div class="collapsible-body">Peer review is conducted using a double-blind system and generally takes approximately two weeks from submission. The timeline may vary depending on reviewer availability and revision requirements.</div>
							</li>
							<li>
								<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>Will I get an ISBN?</span><i class="material-icons chevron">expand_more</i></div>
								<div class="collapsible-body">Yes, all books and edited volumes are assigned a registered ISBN. This ensures global recognition and cataloging. DOI registration may also be provided where applicable to enhance discoverability.</div>
							</li>
							<li>
								<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>What formats are accepted?</span><i class="material-icons chevron">expand_more</i></div>
								<div class="collapsible-body">Manuscripts must be submitted in digital format as per author guidelines. Books and chapters are accepted in editable formats like Microsoft Word, with properly structured text, title pages, and author information.</div>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</section>

		<script>
			document.addEventListener('DOMContentLoaded', function() {
				M.Collapsible.init(document.querySelectorAll('.collapsible'), {
					accordion: true,
					onOpenStart: el => el.classList.add('active'),
					onCloseStart: el => el.classList.remove('active')
				});
			});
		</script>
		
		<style>
			.reviews-wrapper { all: initial; }

			.reviews-wrapper .reviews-section-title { text-align:center; font-size:32px; font-weight:700; color:#1a365d; margin-bottom:10px; position:relative; padding-bottom:15px; font-family:'Roboto',sans-serif; }
			.reviews-wrapper .reviews-section-title::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:80px; height:4px; background:linear-gradient(90deg,#2563eb,#7c3aed); border-radius:2px; }
			.reviews-wrapper .reviews-subtitle { text-align:center; color:#64748b; font-size:16px; margin-bottom:40px; font-family:'Roboto',sans-serif; }
			
			/* Row Col System */
			.reviews-wrapper .row { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 -12px; margin-bottom: 50px; }
			.reviews-wrapper .col { padding: 0 12px; margin-bottom: 24px; box-sizing: border-box; }
			.reviews-wrapper .col-12 { width: 100%; }
			.reviews-wrapper .col-6 { width: 50%; }
			.reviews-wrapper .col-4 { width: 33.333333%; }

			@media (max-width: 992px) {
				.reviews-wrapper .col-md-6 { width: 50%; }
			}
			@media (max-width: 600px) {
				.reviews-wrapper .col-sm-12 { width: 100%; }
			}

			.reviews-wrapper .review-card { background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,.08); border: 1px solid #e2e8f0; transition: transform .3s ease, box-shadow .3s ease; height: 100%; box-sizing: border-box; }
			.reviews-wrapper .review-card:hover { transform:translateY(-5px); box-shadow:0 12px 35px rgba(0,0,0,.12); }
			.reviews-wrapper .review-header { display:flex; align-items:center; gap:15px; margin-bottom:15px; }
			.reviews-wrapper .reviewer-avatar { width:55px; height:55px; border-radius:50%; background:linear-gradient(135deg,#2563eb,#7c3aed); display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; font-weight:600; flex-shrink:0; font-family:'Roboto',sans-serif; }
			.reviews-wrapper .reviewer-info { flex:1; }
			.reviews-wrapper .reviewer-name { font-size:16px; font-weight:600; color:#1e293b; font-family:'Roboto',sans-serif; margin: 0; }
			.reviews-wrapper .review-rating { display:flex; gap:3px; margin-bottom:12px; }
			.reviews-wrapper .star { color:#fbbf24; font-size:18px; }
			.reviews-wrapper .star.empty { color:#cbd5e1; }
			.reviews-wrapper .review-text { color:#475569; font-size:14px; line-height:1.7; margin:0; font-family:'Roboto',sans-serif; }
			.reviews-wrapper .review-date { font-size:12px; color:#777; margin-top:15px; padding-top:12px; border-top:1px solid #e2e8f0; font-family:'Roboto',sans-serif; }
			
			.reviews-wrapper .no-reviews { width: 100%; font-size: 14px; font-family: 'Roboto', sans-serif; text-align: center; padding: 40px; color: #64748b; background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e1; }
			.reviews-wrapper .no-reviews p { margin: 0; }

			.reviews-wrapper .write-review-section { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 16px; padding: 30px; border: 1px solid #e2e8f0; max-width: 768px; margin: auto; }
			.reviews-wrapper .form-title { font-size: 24px; font-weight: 700; color: #1a365d; margin: 0 0 8px 0; text-align: center; font-family: 'Roboto', sans-serif; }
			.reviews-wrapper .form-subtitle { text-align: center; color: #64748b; margin: 0 0 30px 0; font-size: 15px; font-family: 'Roboto', sans-serif; }
			.reviews-wrapper .review-form { display: grid; gap: 20px; }
			.reviews-wrapper .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
			.reviews-wrapper .form-col { display: flex; flex-direction: column; }
			.reviews-wrapper .form-col label { font-size: 13px; font-weight: 500; text-transform: uppercase; color: #334155; margin-bottom: 5px; font-family: 'Roboto', sans-serif; }
			.reviews-wrapper .form-col label .required { color: #ef4444; margin-left: 2px; }
			.reviews-wrapper .form-col input,
			.reviews-wrapper .form-col textarea,
			.reviews-wrapper .form-col select { padding: 10px; height: 40px; line-height: normal; font-size: 14px !important; border: 1px solid #d9d9d9; border-radius: 6px; transition: all 0.3s ease; background: #ffffff; color: #333; outline: none; font-family: 'Roboto', sans-serif; float: left; display: block; margin-bottom: 0; }
			.reviews-wrapper .form-col input:focus,
			.reviews-wrapper .form-col textarea:focus,
			.reviews-wrapper .form-col select:focus { border: 1px solid #2979ff !important; box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.15) !important; }
			.reviews-wrapper .form-col input::placeholder,
			.reviews-wrapper .form-col textarea::placeholder { color: #999; }
			.reviews-wrapper .form-col textarea { min-height: 100px; resize: vertical; }
			.reviews-wrapper .submit-btn { border: none; height: auto; line-height: normal; padding: 12px 20px; font-size: 16px; font-weight: 500; border-radius: 6px; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 5px; margin-top: 5px; width: fit-content; align-self: center; }
			.reviews-wrapper .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35); }
			.reviews-wrapper .submit-btn:active { transform: translateY(0); }
		</style>

		<div class="reviews-wrapper" id="reviews-wrapper">
			<h2 class="reviews-section-title">What Our Clients Say</h2>
			<p class="reviews-subtitle">Trusted by researchers and academicians worldwide</p>
			
			<!-- Existing Reviews Display -->
			<div class="row">
				<?php
				$stmt = $mysqli->prepare("SELECT name, review, rating, created_at FROM bookchapter_reviews WHERE bookchapter_id = ? AND status = 'approved' ORDER BY created_at DESC LIMIT 6");
				$stmt->bind_param('i', $book_chapter_id);
				$stmt->execute();
				$stmt->store_result();
				$stmt->bind_result($name, $review, $rating, $created_at);
				
				if ($stmt->num_rows > 0):
					while ($stmt->fetch()):
						// Generate initials from name
						$initials = '';
						$nameParts = explode(' ', $name);
						foreach ($nameParts as $part) {
							if (!empty($part) && strpos($part, '.') === false) {
								$initials .= strtoupper($part[0]);
							}
						}
						$initials = substr($initials, 0, 2);
						
						// Format date
						$formatted_date = date('d M Y', strtotime($created_at));
				?>
					<div class="col col-4 col-md-6 col-sm-12">
						<div class="review-card">
							<div class="review-header">
								<div class="reviewer-avatar"><?php echo $initials; ?></div>
								<div class="reviewer-info">
									<h4 class="reviewer-name"><?php echo htmlspecialchars($name); ?></h4>
								</div>
							</div>
							<div class="review-rating">
								<?php for ($i = 1; $i <= 5; $i++): ?>
									<span class="star <?php echo $i > $rating ? 'empty' : ''; ?>">★</span>
								<?php endfor; ?>
							</div>
							<p class="review-text">"<?php echo htmlspecialchars($review); ?>"</p>
							<div class="review-date">📅 <?php echo $formatted_date; ?></div>
						</div>
					</div>
				<?php 
					endwhile;
				else:
				?>
					<div class="col col-12">
						<div class="no-reviews">
							<p>No reviews yet. Be the first to share your experience!</p>
						</div>
					</div>
				<?php 
				endif;
				$stmt->close();
				?>
			</div>

			<div class="write-review-section">
				<h3 class="form-title">Share Your Experience</h3>
				<p class="form-subtitle">We value your feedback. Tell us about your experience with AkiNik Publications.</p>
				
				<form autocomplete="off" class="review-form" id="akinikReviewForm" method="POST" action="<?php echo $baseurl; ?>publishbookchapter" onsubmit="return writeReview(this)">
					<input type="hidden" name="<?php echo $token_id; ?>" value="<?php echo $token_value; ?>" autocomplete="off" readonly />
					<input type="hidden" name="focus" value="<?php echo $en->encrypt('get_review'); ?>" autocomplete="off" readonly />
					<input type="hidden" name="bookchapter_id" value="<?php echo $book_chapter_id; ?>" autocomplete="off" readonly />
					<input type="hidden" name="honeypot" value="" readonly />

					<div class="form-row">
						<div class="form-col">
							<label for="reviewer_name">Full Name <span class="required">*</span></label>
							<input type="text" name="reviewer_name" id="reviewer_name" placeholder="Enter your full name" required>
						</div>
						<div class="form-col">
							<label for="reviewer_email">Email Address <span class="required">*</span></label>
							<input type="text" name="reviewer_email" id="reviewer_email" placeholder="Enter your email" required>
						</div>
					</div>
			
					<div class="form-col">
						<label for="review_text">Your Review <span class="required">*</span></label>
						<textarea name="review_text" id="review_text" placeholder="Share your experience with us..." required></textarea>
					</div>

					<div class="form-col">
						<label for="skycolor">What is color of sky in day? (Anti Spam Question) <span class="required">*</span></label>
						<select name="skycolor" id="skycolor" class="browser-default" required>
							<option value="" selected>Select sky color</option>
							<option value="blue">Blue</option>
							<option value="black">Black</option>
							<option value="green">Green</option>
							<option value="orange">Orange</option>
						</select>
					</div>

					<div class="form-col" style="display: flex; align-items: start; justify-content: start;">
						<label for="review_rating">Rating <span class="required">*</span></label>
						<input type="text" name="review_rating" id="review_rating" class="ratingstar" style="display: none;" />
					</div>
			
					<button type="submit" name="submit" class="submit-btn btn-flat blue accent-3 white-text">
						Submit Review
					</button>
				</form>
			</div>
		</div>

		<script>
			function writeReview(f)
			{
				f.submit.disabled = true; $('.loader').show(0); $('.toast').remove();

				fetch(f.action, {
					method: 'post',
					mode: 'same-origin',
					cache: 'no-cache',
					headers: {
						'Accept': 'application/json',
					},
					body: new FormData(f)
				})
				.then(response => response.json())
				.then(response => {
					if (response.stat && response.stat === true) {
						M.toast({html: response.text, displayLength: 15000, classes: 'green'});

						$('#reviews-wrapper').load(location.href + ' #reviews-wrapper > *', function () {
							$('.ratingstar').rating({showClear: false, showCaption: false, size:'sm'});
						});
					} else {
						M.toast({html: response.text, displayLength: 15000, classes: 'red'});
					}
				})
				.catch(error => {
					M.toast({html: error, displayLength: 15000});
				})
				.finally(() => {
					f.submit.disabled = false; $('.loader').hide(0);
				});
			
				return false;
			}
		</script>

		<div id="model-screen-popup" class="modal modal-fixed-footer model-screen-popup">
			<form action="<?php echo $baseurl; ?>publishbookchapter" method="post" name="contactform" onsubmit="return placeModalEnquiry(this)">
				<input type="hidden" name="<?php echo $token_id; ?>" value="<?php echo $token_value; ?>" autocomplete="off" readonly />
				<input type="hidden" name="focus" value="<?php echo $en->encrypt('[GET_ENQUIRY]'); ?>" autocomplete="off" readonly />
				<input type="hidden" name="zipcode" value="">
				<input type="hidden" name="bookname" value="<?php echo $bookname; ?>">
				<div class="modal-content">
					<div class="modal-header blue accent-3 white-text center-align">
						<b>Book Chapter Publication Enquiry</b>
						<p>Please provide your contact details.</p>
					</div>
					<div class="row">
						<div class="col s12 m6 l6">
							<label for="name" class="form-label">name</label>
							<input type="text" name="name" id="name" class="form-control" required />
						</div>
						<div class="col s12 m6 l6">
							<label for="email" class="form-label">email</label>
							<input type="text" name="email" id="email" class="form-control" required />
						</div>
						<div class="col s12 m6 l6">
							<label for="country" class="form-label">Country</label>
							<select name="country" class="browser-default form-control" onchange="this.form.phonecode.value = this.value ? this.options[this.selectedIndex].dataset.phonecode : ''" required>
								<option value="" selected="selected">Select country</option>
								<?php
								$stmt = $mysqli->prepare("SELECT nicename, phonecode FROM country WHERE phonecode != '0' ORDER BY nicename");
								$stmt->execute();
								$stmt->store_result();
								$stmt->bind_result($nicename, $phonecode);
								while ($stmt->fetch()) :
									echo '<option value="' . $nicename . '" data-phonecode="+' . $phonecode . '" ' . ($phonecode == '91' ? 'selected' : '') . '>' . $nicename . '</option>';
								endwhile;
								$stmt->close();
								?>
							</select>
						</div>
						<div class="col s12 m6 l6">
							<label for="phone" class="form-label">whatsapp number</label>
							<div style="display: flex;">
								<input type="text" name="phonecode" id="phonecode" value="+91" class="form-control grey lighten-2 center-align" style="width: 60px;" required readonly />
								<input type="text" name="phone" id="phone" class="form-control" required />
							</div>
						</div>
						<div class="col s12 m12 l12">
							<label for="message" class="form-label">message</label>
							<textarea rows="5" cols="5" name="message" id="message" class="form-control" style="height: 80px !important;padding: 8px !important;" required></textarea>
						</div>
						<div class="col s12 m12 l12">
							<label for="skycolor" class="form-label">What is color of sky in day? (Anti Spam Question)</label>
							<select name="skycolor" id="skycolor" class="browser-default form-control">
								<option value="" selected>Select sky color</option>
								<option value="blue">Blue</option>
								<option value="black">Black</option>
								<option value="green">Green</option>
								<option value="orange">Orange</option>
							</select>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="reset" class="btn-flat grey darken-1 white-text modal-close">Close</button>
					<button type="submit" class="btn-flat blue accent-3 white-text" name="submit">Submit Enquiry</button>
				</div>
			</form>
		</div>

		<div class="modal-bottom-sheet">
			<div class="container">
				<div class="hide-on-med-and-down logo-container">
					<a href="<?php echo $baseurl; ?>">
						<img src="<?php echo $baseurl . 'images/logo-default.png'; ?>" alt="<?php echo $websitename; ?>" title="<?php echo $websitename; ?>" style="height: 40px;" />
					</a>
					<div>
						<b style="font-size: 18px;line-height: normal"><?php echo $websitename; ?></b><br>
						<span style="font-size: 12px;line-height: normal">Phone: +91-9911215212</span>
					</div>
				</div>
				<div style="display: flex;align-items: center;justify-content: center;column-gap: 10px;">
					<a href="#model-screen-popup" target="_blank" class="btn-flat orange darken-2 white-text modal-trigger">Publication Enquiry</a>
					<a href="https://wa.me/919911215212?text=Hello, I have a query related to book chapter publication in <?php echo $bookname; ?>.%0a%0a%0aReference: <?php echo $baseurl; ?>publishbookchapter/<?php echo $link; ?>" target="_blank" class="btn-flat green white-text">
						<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16">
							<path d="M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"/>
						</svg>
						Chat
					</a>
				</div>
			</div>
		</div>

		<style>
			#toast-container{min-width: 10%;top: 50%;right: 50%;transform: translateX(50%) translateY(50%);}
			@media (max-width:768px) {
				#toast-container{width: 100%;}
			}
		</style>

		<a href="https://wa.me/919911215212?text=Hello, I have a query related to book chapter publication in <?php echo $bookname; ?>.%0a%0a%0aReference: <?php echo $baseurl; ?>publishbookchapter/<?php echo $link; ?>" target="_blank" class="fixed-whatsapp"></a>
<?php
	else:
		echo 'No book found for <b>&quot;' . html_entity_decode(html_entity_decode($link)) . '&quot;</b>';
	endif;
else:
?>
	<div class="row head main">
		<div class="col s12 m12 l12 center-align">
			<h1><?php echo $pagetitle; ?></h1>
		</div>
	</div>
	<div class="row bookchapter">
		<div class="col s12 m12 l3 hide-on-med-and-down sidebar">
			<?php require('bookchaptersidebar.php'); ?>
		</div>
		<div class="col s12 m12 l9">
			<div>
				<p align="justify">AkiNik Publications is an innovative and leading book publisher. Through our exceptional blend of people, processes, and industry-specific experience, we deliver elegant solutions to authors. With the growing demand for book publication in the market, it has become essential to evaluate all available options with the flexibility to adapt to specific requirements. AkiNik Publications is a Crossref member. Our publishing options cover a wide range of scientific publications, ensuring the most appropriate outlet for your research.</p>
				<div class="row-1" style="margin:10px 0">
					<div class="left" style="margin:10px 0 20px">
						<h1 class="blue-text text-accent-3">Why<br>choose us</h1>
					</div>
					<ul class="left">
                        <li>More than 3,000 books published</li>
                        <li>Books will be published with ISBN + DOI</li>
                        <li>10-25 pages allowed per chapter</li>
                        <li>Peer review process</li>
                        <li>A publication certificate will be provided to each author</li>
                        <li>A separate CrossRef DOI will be allotted to each book</li>
                        <li>India: ₹2,000 per chapter (includes hard copy and shipping);<br>Rest of the World: $40 per chapter (E-book) or $50 per chapter (hard copy and shipping) – optional</li>
                        <li>Send your book chapter to: <a href="mailto:akinikbooks@gmail.com">akinikbooks@gmail.com</a></li>
					</ul>
				</div>

				<br clear="all"><br clear="all">
				<b style="font-size:18px;">Indexed In:</b>
				<div style="display:flex;column-gap:10px;row-gap:10px;flex-wrap:wrap;" class="zoomimage">
					<img src="<?php echo $imageurl; ?>crossref-logo.png" alt="Indexed in Crossref" title="Indexed in Crossref" style="padding:10px;height:40px;background:#fff;border:1px solid #ccc;flex-shrink:0;">
					<img src="<?php echo $imageurl; ?>bowker-logo.png" alt="Indexed in Bowker" title="Indexed in Bowker" style="padding:10px;height:40px;background:#fff;border:1px solid #ccc;flex-shrink:0;">
					<img src="<?php echo $imageurl; ?>r-access-logo.png" alt="Indexed in R-Access" title="Indexed in R-Access" style="padding:5px;height:40px;background:#fff;border:1px solid #ccc;flex-shrink:0;">
					<img src="<?php echo $imageurl; ?>dimensions-logo.png" alt="Indexed in Dimensions" title="Indexed in Dimensions" style="padding:5px;height:40px;background:#fff;border:1px solid #ccc;flex-shrink:0;">
					<img src="<?php echo $imageurl; ?>google-play-book-logo.png" alt="Indexed in Google Play Books" title="Indexed in Google Play Books" style="padding:5px;height:40px;background:#fff;border:1px solid #ccc;flex-shrink:0;">
				</div>
				<br clear="all">
				<p><b>1. Author Guidelines: <a href="<?php echo $baseurl; ?>docs/BookChapterGuidelines.pdf" target="_blank">Click Here</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. Copyright Form: <a href="<?php echo $baseurl; ?>docs/BookChapterCopyrightForm.pdf" target="_blank">Click Here</a></b>
				<br clear="all"><br clear="all">
				<p>We are inviting book chapters for following upcoming titles:</p>
			</div>
			<div class="row-2" style="margin-top:10px">
				<div class="head"><b>Book titles open for chapter submissions</b></div>
				<br clear="all"><br clear="all">

				<style>
					.search-wrapper { position: relative; background: white; border-radius: 50px; box-shadow: 0 5px 25px rgba(0,0,0,0.15); transition: all 0.3s; }
					.search-wrapper:focus-within { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
					.search-wrapper .search-box { width: 100%; padding: 25px 80px 25px 25px !important; font-size: 14px !important; border: none !important; border-radius: 50px; outline: none; font-weight: 400; margin: 0 !important; box-shadow: none !important; }
					.search-wrapper .search-box::placeholder { color: #777; }
					.search-wrapper .search-icon { position: absolute; top: 0; bottom: 0; right: 5px; margin: auto 0; background: #e3f2fd; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
					.search-wrapper .suggestions { position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.3); margin-top: 10px; max-height: 550px; overflow-y: auto; display: none; z-index: 1000; }
					.search-wrapper .suggestions.active { display: block; animation: slideDown 0.3s ease; }
					@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
					.search-loading { padding: 25px; text-align: center; color: #333; font-size: 16px; background: white; }
					.search-loading .loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 10px; vertical-align: middle; }
					@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
					.suggestions .no-results { padding: 30px; text-align: center; color: #666; font-size: 16px; background: white; }
					.suggestions .no-results .icon { font-size: 48px; margin-bottom: 0px; opacity: 0.5; }
					.suggestions { padding: 10px 0; }
					.suggestions .book-title a { font-weight: 500; font-size: 14px; padding: 6px 15px; display: block; }
					.suggestions .book-title a:hover { background-color: #efefef; }

					/* Apply the color animation to the text */
					.color-animation {
						font-size: 16px;
						animation: colorChange 3s infinite; /* Animation for color change */
					}

					/* Define the color change animation */
					@keyframes colorChange {
						0% {
							color: #ff0000; /* Red at the start */
						}
						25% {
							color: #00ff00; /* Green at 25% */
						}
						50% {
							color: #0000ff; /* Blue at 50% */
						}
						75% {
							color: #ff00ff; /* Magenta at 75% */
						}
						100% {
							color: #ff0000; /* Red at 100% (to loop back) */
						}
					}
				</style>

				<b style="font-size: 16px;">Search edited books: Submissions Open</b>

				<br clear="all"><br clear="all">

				<div class="search-wrapper">
					<input placeholder="Type your search query here for edited books..." type="text" class="search-box" id="searchInput" autocomplete="off">
            		<span class="search-icon">
						<svg width="24" height="24" fill="#2979ff" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z" /></svg>
					</span>
					 <div class="suggestions" id="suggestions"></div>
				</div>

				<style>
					.arrow {
						font-size: 50px;
						transform: rotate(90deg);
						animation: moveDown 2s infinite;
					}
					@keyframes moveDown {
						0% {
							transform: translateY(-5px) rotate(90deg);
						}
						50% {
							transform: translateY(20px) rotate(90deg);
						}
						100% {
							transform: translateY(-5px) rotate(90deg);
						}
					}
				</style>

				<br clear="all">
				<div style="display: inline-flex;align-items:center;">
					<b style="font-size: 16px;"><span class="color-animation">Submissions are open for all the following titles.</span></b>
				</div>

				<br clear="all">
				<br clear="all">
				<div class="body">
<?php
					$categories = '';
					$stmt = $mysqli->prepare("SELECT subject FROM bookchapters GROUP BY subject ORDER BY subject ASC") or die('An error occurred. Please try after some time.');
					$stmt->execute();
					$stmt->store_result();
					if($stmt->num_rows() > 0):
						$stmt->bind_result($subject);
						while($stmt->fetch()):
							$categories .= ($subject) ? $subject.'|' : '';
						endwhile;
						$categoriesarray = array_unique(explode('|', $categories));
						foreach($categoriesarray as $subject):
							if($subject):
								echo '<ul class="fluid"><li>'.$subject.'<ul class="fluid">'.chapters($subject).'</ul></li></ul>';
							endif;
						endforeach;
					endif;
					$stmt->close();
?>
				</div>
			</div>
		</div>
		<br clear="all"><br clear="all">
		<div class="col s12 m12 l3 show-on-medium-and-down sidebar" style="display:none">
			<?php require('bookchaptersidebar.php'); ?>
		</div>
	</div>

	<style>
		.faq-section { padding: 50px 0; }
		.faq-title { text-align: center; font-weight: 500; color: #333; font-size: 30px; margin-bottom: 40px; }
		.faq-collapsible { border: none !important; box-shadow: none !important; }
		.faq-collapsible li { margin-bottom: 12px; border-radius: 10px !important; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.08); background: #fff; }
		.faq-collapsible .collapsible-header { border: none !important; padding: 12px 10px; font-weight: 500; font-size: 15px; color: #333; background: #fff; display: flex; align-items: center; }
		.faq-collapsible .collapsible-header i.q-icon { color: #1a73e8; margin-right: 10px !important; }
		.faq-collapsible .collapsible-header span { flex: 1; }
		.faq-collapsible .collapsible-header i.chevron { transition: transform 0.3s ease; margin-right: 0; width: 24px; }
		.faq-collapsible li.active .collapsible-header { background: #1a73e8; color: #fff; }
		.faq-collapsible li.active .collapsible-header i { color: #fff; }
		.faq-collapsible li.active .collapsible-header i.chevron { transform: rotate(180deg); }
		.faq-collapsible .collapsible-body { padding: 15px; border: none !important; background: #fff; color: #555; line-height: 1.7; }
	</style>

	<section class="faq-section">
		<div class="container">
			<h4 class="faq-title">Frequently Asked Questions</h4>
			<div class="row">
				<div class="col s12 m10 offset-m1">
					<ul class="collapsible faq-collapsible">
						<li>
							<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>Who can submit?</span><i class="material-icons chevron">expand_more</i></div>
							<div class="collapsible-body">AkiNik Publications welcomes submissions from academic researchers, professionals, postgraduate and doctoral scholars, and other contributors across various disciplines. The platform supports authors at different stages of their careers, offering a professional outlet for quality academic work.</div>
						</li>
						<li>
							<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>Is there a fee?</span><i class="material-icons chevron">expand_more</i></div>
							<div class="collapsible-body">Yes, publication fees vary depending on the type of work and services selected. These fees cover editorial review, formatting, design, ISBN or DOI registration, and distribution. Full details are provided in the author guidelines or during submission.</div>
						</li>
						<li>
							<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>What is the peer review timeframe?</span><i class="material-icons chevron">expand_more</i></div>
							<div class="collapsible-body">Peer review is conducted using a double-blind system and generally takes approximately two weeks from submission. The timeline may vary depending on reviewer availability and revision requirements.</div>
						</li>
						<li>
							<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>Will I get an ISBN?</span><i class="material-icons chevron">expand_more</i></div>
							<div class="collapsible-body">Yes, all books and edited volumes are assigned a registered ISBN. This ensures global recognition and cataloging. DOI registration may also be provided where applicable to enhance discoverability.</div>
						</li>
						<li>
							<div class="collapsible-header"><i class="material-icons q-icon">help_outline</i><span>What formats are accepted?</span><i class="material-icons chevron">expand_more</i></div>
							<div class="collapsible-body">Manuscripts must be submitted in digital format as per author guidelines. Books and chapters are accepted in editable formats like Microsoft Word, with properly structured text, title pages, and author information.</div>
						</li>
					</ul>
				</div>
			</div>
		</div>
	</section>

	<script>
		document.addEventListener('DOMContentLoaded', function() {
			M.Collapsible.init(document.querySelectorAll('.collapsible'), {
				accordion: true,
				onOpenStart: el => el.classList.add('active'),
				onCloseStart: el => el.classList.remove('active')
			});
		});
	</script>

	<div id="model-screen-popup" class="modal modal-fixed-footer model-screen-popup">
		<form action="<?php echo $baseurl; ?>publishbookchapter" method="post" name="contactform" onsubmit="return placeModalEnquiry(this)">
			<input type="hidden" name="<?php echo $token_id; ?>" value="<?php echo $token_value; ?>" autocomplete="off" readonly />
			<input type="hidden" name="focus" value="<?php echo $en->encrypt('[GET_ENQUIRY]'); ?>" autocomplete="off" readonly />
			<input type="hidden" name="zipcode" value="">
			<input type="hidden" name="bookname" value="">
			<div class="modal-content">
				<div class="modal-header blue accent-3 white-text center-align">
					<b>Book Chapter Publication Enquiry</b>
					<p>Please provide your contact details.</p>
				</div>
				<div class="row">
					<div class="col s12 m6 l6">
						<label for="name" class="form-label">name</label>
						<input type="text" name="name" id="name" class="form-control" required />
					</div>
					<div class="col s12 m6 l6">
						<label for="email" class="form-label">email</label>
						<input type="text" name="email" id="email" class="form-control" required />
					</div>
					<div class="col s12 m6 l6">
						<label for="country" class="form-label">Country</label>
						<select name="country" class="browser-default form-control" onchange="this.form.phonecode.value = this.value ? this.options[this.selectedIndex].dataset.phonecode : ''" required>
							<option value="" selected="selected">Select country</option>
							<?php
							$stmt = $mysqli->prepare("SELECT nicename, phonecode FROM country WHERE phonecode != '0' ORDER BY nicename");
							$stmt->execute();
							$stmt->store_result();
							$stmt->bind_result($nicename, $phonecode);
							while ($stmt->fetch()) :
								echo '<option value="' . $nicename . '" data-phonecode="+' . $phonecode . '" ' . ($phonecode == '91' ? 'selected' : '') . '>' . $nicename . '</option>';
							endwhile;
							$stmt->close();
							?>
						</select>
					</div>
					<div class="col s12 m6 l6">
						<label for="phone" class="form-label">whatsapp number</label>
						<div style="display: flex;">
							<input type="text" name="phonecode" id="phonecode" value="+91" class="form-control grey lighten-2 center-align" style="width: 60px;" required readonly />
							<input type="text" name="phone" id="phone" class="form-control" required />
						</div>
					</div>
					<div class="col s12 m12 l12">
						<label for="message" class="form-label">message</label>
						<textarea rows="5" cols="5" name="message" id="message" class="form-control" style="height: 80px !important;padding: 8px !important;" required></textarea>
					</div>
					<div class="col s12 m12 l12">
						<label for="skycolor" class="form-label">What is color of sky in day? (Anti Spam Question)</label>
						<select name="skycolor" id="skycolor" class="browser-default form-control">
							<option value="" selected>Select sky color</option>
							<option value="blue">Blue</option>
							<option value="black">Black</option>
							<option value="green">Green</option>
							<option value="orange">Orange</option>
						</select>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<button type="reset" class="btn-flat grey darken-1 white-text modal-close">Close</button>
				<button type="submit" class="btn-flat blue accent-3 white-text" name="submit">Submit Enquiry</button>
			</div>
		</form>
	</div>

	<div class="modal-bottom-sheet">
		<div class="container">
			<div class="hide-on-med-and-down logo-container">
				<a href="<?php echo $baseurl; ?>">
					<img src="<?php echo $baseurl . 'images/logo-default.png'; ?>" alt="<?php echo $websitename; ?>" title="<?php echo $websitename; ?>" style="height: 40px;" />
				</a>
				<div>
					<b style="font-size: 18px;line-height: normal"><?php echo $websitename; ?></b><br>
					<span style="font-size: 12px;line-height: normal">Phone: +91-9911215212</span>
				</div>
			</div>
			<div style="display: flex;align-items: center;justify-content: center;column-gap: 10px;">
				<a href="#model-screen-popup" target="_blank" class="btn-flat orange darken-2 white-text modal-trigger">Publication Enquiry</a>
				<a href="https://wa.me/919911215212?text=Hello, I have a query related to book chapter publication.%0a%0a%0aReference: <?php echo $baseurl; ?>publishbookchapter" target="_blank" class="btn-flat green white-text">
					 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16">
						<path d="M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"/>
					</svg>
					Chat
				</a>
			</div>
		</div>
	</div>

	<style>
		#toast-container{min-width: 10%;top: 50%;right: 50%;transform: translateX(50%) translateY(50%);}
		@media (max-width:768px) {
			#toast-container{width: 100%;}
		}
	</style>

	<a href="https://wa.me/919911215212?text=Hello, I have a query related to book chapter publication.%0a%0a%0aReference: <?php echo $baseurl; ?>publishbookchapter" target="_blank" class="fixed-whatsapp"></a>

	<script defer>
		const searchInput = document.getElementById('searchInput');
		const suggestionsBox = document.getElementById('suggestions');
		let debounceTimer;
		let currentFocus = -1;

		function searchExample(text) {
			searchInput.value = text;
			searchInput.focus();
			showLoading();
			setTimeout(() => fetchSuggestions(text), 100);
		}

		searchInput.addEventListener('input', function() {
			const query = this.value.trim();
			clearTimeout(debounceTimer);
			
			if (query.length === 0) {
				hideSuggestions();
				return;
			}

			if (query.length < 2) {
				return; // Wait for at least 2 characters
			}

			showLoading();

			debounceTimer = setTimeout(() => {
				fetchSuggestions(query);
			}, 400);
		});

		searchInput.addEventListener('keydown', function(e) {
			const items = suggestionsBox.getElementsByClassName('suggestion-item');
			
			if (e.key === 'ArrowDown') {
				e.preventDefault();
				currentFocus++;
				addActive(items);
			} else if (e.key === 'ArrowUp') {
				e.preventDefault();
				currentFocus--;
				addActive(items);
			} else if (e.key === 'Enter') {
				e.preventDefault();
				if (currentFocus > -1 && items[currentFocus]) {
					items[currentFocus].click();
				}
			} else if (e.key === 'Escape') {
				hideSuggestions();
			}
		});

		function fetchSuggestions(query) {
			fetch(`<?php echo $baseurl; ?>search_edited_books?q=${encodeURIComponent(query)}`, {
				method: 'GET',
				headers: {
					'Accept': 'application/json'
				}
			})
			.then(response => {
				if (!response.ok) {
					throw new Error(`HTTP error! status: ${response.status}`);
				}
				return response.json();
			})
			.then(data => {
				console.log('API Response:', data); // Debug log
				
				if (data.success && data.count > 0) {
					displaySuggestions(data.suggestions);
				} else {
					showError(data.message || 'No books found');
				}
			})
			.catch(error => {
				console.error('Fetch Error:', error);
				showError('Unable to connect to server.');
			});
		}

		function displaySuggestions(suggestions) {
			suggestionsBox.innerHTML = '';
			currentFocus = -1;

			suggestions.forEach((book, index) => {
				const div = document.createElement('div');
				div.className = 'suggestion-item';

				div.innerHTML = `
					<div class="book-title">
						<a href="<?php echo $baseurl; ?>publishbookchapter/${book.newlink}">${book.title}</a>
					</div>
				`;

				suggestionsBox.appendChild(div);
			});

			suggestionsBox.classList.add('active');
		}

		function showLoading() {
			suggestionsBox.innerHTML = `
				<div class="search-loading">
					<div class="loading-spinner"></div>
					Searching books...
				</div>
			`;
			suggestionsBox.classList.add('active');
		}

		function showError(message = 'No books found') {
			suggestionsBox.innerHTML = `
				<div class="no-results">
					<div class="icon">😕</div>
					<div><strong>${message}</strong></div>
					<div style="font-size:14px; margin-top:8px; color:#999;">Try different keywords</div>
				</div>
			`;
			suggestionsBox.classList.add('active');
		}

		function hideSuggestions() {
			suggestionsBox.classList.remove('active');
			currentFocus = -1;
		}

		function addActive(items) {
			if (!items || items.length === 0) return;
			removeActive(items);
			
			if (currentFocus >= items.length) currentFocus = 0;
			if (currentFocus < 0) currentFocus = items.length - 1;
			
			items[currentFocus].classList.add('active');
			items[currentFocus].scrollIntoView({ block: 'nearest', behavior: 'smooth' });
		}

		function removeActive(items) {
			for (let i = 0; i < items.length; i++) {
				items[i].classList.remove('active');
			}
		}

		document.addEventListener('click', function(e) {
			if (!searchInput.contains(e.target) && !suggestionsBox.contains(e.target)) {
				hideSuggestions();
			}
		});
	</script>
<?php
endif;

require_once('footer.php');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit