<?php if (!isset($_SESSION)) { session_start(); } $name = $_SESSION['name']; $user_id = $_SESSION['user_id']; $user_data = get_user_data($user_id); $character_data = get_characters($user_id); include $_SERVER['DOCUMENT_ROOT'] . '/library/modules/head.php'; include $_SERVER['DOCUMENT_ROOT'] . '/library/modules/header.php'; include $_SERVER['DOCUMENT_ROOT'] . '/library/modules/nav.php'; ?> <main role="main"> <?php if (isset($message)) { echo $message; } ?> <h1>Feedback</h1> <p>I would love to hear your suggestions as to how to make this site better! Submit below.</p> <p>Before you ask for specific things, I'll let you know that these are on my to-do list</p> <ul> <li>Make the dice emulator prettier(suggestions for how to accomplish this are still good)</li> <li>Add responsive CSS to the character sheet(I Know that right now it is kind of annoying, I just didn't have the time to do this on first draft)</li> <li>Add a character creation process that follows D&D rules</li> <li>Add calculate buttons to the character sheet for figuring modifiers and other things automagically</li> </ul>
} else { $sql_select .= ' WHERE available=1 AND type_id<100 ORDER BY sort DESC'; } $order_type = $GLOBALS['db']->getAll($sql_select); $smarty->assign('order_type', $order_type); $healthy_file = get_healthy($user_id); $isexistHF = $healthy_file['baseInfo']['total']; $smarty->assign('healthy_file', $healthy_file); $smarty->assign('case_list', $case['case_list']); //idsease $smarty->assign('before_case', $case['before_case']); //idsease $smarty->assign('isexistHF', $isexistHF); $smarty->assign('disease', get_disease()); // diseases $smarty->assign('characters', get_characters()); // characters $smarty->assign('payment', payment_list()); // payment $smarty->assign('surplus_payment', payment_list()); // 充值提现支付方式 $smarty->assign('shipping', shipping_list(3)); // shipping $smarty->assign('service_class', get_service_class()); // servcie class $smarty->assign('service_manner', get_service_manner()); // sercie manner $smarty->assign('integral_log', get_integral_log($user_id)); // integral log $smarty->assign('bmi', get_user_bmi($user_id)); if (in_array($_SESSION['admin_id'], $ADMIN_POWER)) {
?> </a></li> <?php $i = $i - 104; } ?> </ul> <div class="clear"></div> </div> <?php } ?> <div class="submenu" id="char-submenu"> <?php $characters = get_characters(); $charactersArray = array(); if (count($characters) > 0) { foreach ($characters as $char) { $armoryData = json_decode($char['armorydata']); $charactersArray[] = array('name' => $char['name'], 'realm' => $char['realm'], 'class' => $armoryData->class, 'thumbnail' => "http://us.battle.net/static-render/us/" . $armoryData->thumbnail, 'race' => $armoryData->race, 'level' => $armoryData->level, 'default' => $char['default_char'], 'id' => $char['id']); } } ?> <ul> <li class="nohover"> Character List </li> <?php foreach ($charactersArray as $character) { ?>
<?php foreach (get_players() as $playa) { ?> <th> <?php echo $playa['name']; ?> </th> <?php } ?> </tr> </thead> <tbody class = "characters"> <?php foreach (get_characters() as $char) { ?> <tr onclick="select(this)" onmouseenter="hover(this)" onmouseleave="hover(this)" data-cardname = <?php echo '\'' . $char['name'] . '\''; ?> > <td> <img src = <?php echo '\'' . $char['image_path'] . '\''; ?> class = "card-table"> <?php echo $char['name']; ?> </td> <?php
function widget($args, $instance) { global $SMF_CONTEXT, $wpdb; extract($args, EXTR_SKIP); echo $before_widget; $title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']); if (!empty($title)) { echo $before_title . $title . $after_title; } // WIDGET CODE GOES HERE $chars = get_characters(); //print_r($chars); if (count($chars) < 1) { echo "You haven't added any characters yet."; } else { ?> <ul><?php foreach (get_characters() as $k => $data) { ?> <li class="character"><?php echo ucwords($data['name']); ?> </li> <?php } ?> </ul><?php } //END WIDGET CODE echo $after_widget; }
<h2>Sign up for the Event!</h2> <?php if (!ext_smf_logged_in()) { $_SESSION['login_url'] = get_permalink(); ?> <div class="button-wrapper"><a class="button" href="<?php echo $GLOBALS['SMF_CONTEXT']['menu_buttons']['login']['href']; ?> ">LOGIN TO SIGNUP</a></div><?php } else { ?> <?php $g = get_characters(); if (count($g) > 0) { ?> <p>Step 1: Choose your Character</p> <form action="/" method="post"> <select> <?php foreach ($g as $character) { ?> <option><?php echo $character['name']; ?> </option> <?php } ?>