Beispiel #1
0
 }
 $category = !empty($category_name) ? "<a href='pluginsid.php?id={$id}&category_id={$category_id}'>{$category_name}</a>" : "-";
 $xml .= "<cell><![CDATA[" . $category . "]]></cell>";
 // subcategory
 if ($subcategory_id = $plugin->get_subcategory_id()) {
     if ($subcategory_list = Subcategory::get_list($conn, "WHERE id = '{$subcategory_id}'")) {
         $subcategory_name = "<a href='pluginsid.php?id={$id}&category_id={$category_id}&subcategory_id={$subcategory_id}'>" . $subcategory_list[0]->get_name() . "</a>";
     }
 } else {
     $subcategory_name = '';
 }
 $subcategory = !empty($subcategory_name) ? $subcategory_name : "-";
 $xml .= "<cell><![CDATA[" . $subcategory . "]]></cell>";
 // translate class id
 if ($class_id = $plugin->get_class_id()) {
     if ($class_list = Classification::get_list($conn, "WHERE id = '{$class_id}'")) {
         $class_name = $class_list[0]->get_name();
     }
 }
 $class = !empty($class_name) ? $class_name : "-";
 $xml .= "<cell><![CDATA[" . $class . "]]></cell>";
 $xml .= "<cell><![CDATA[" . $name . "]]></cell>";
 $prio = $plugin->get_priority();
 $txt = "<select id='priority" . $sid . "' onchange='change_pri_rel(\"" . $sid . "\")'>";
 $txt .= "<option value='0'" . ($prio == 0 ? " SELECTED " : "") . ">0</option>";
 $txt .= "<option value='1'" . ($prio == 1 ? " SELECTED " : "") . ">1</option>";
 $txt .= "<option value='2'" . ($prio == 2 ? " SELECTED " : "") . ">2</option>";
 $txt .= "<option value='3'" . ($prio == 3 ? " SELECTED " : "") . ">3</option>";
 $txt .= "<option value='4'" . ($prio == 4 ? " SELECTED " : "") . ">4</option>";
 $txt .= "<option value='5'" . ($prio == 5 ? " SELECTED " : "") . ">5</option>";
 $txt .= "</select>";